apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garrett Rooney <roo...@electricjellyfish.net>
Subject Re: apr_dbd: a generic SQL wrapper
Date Thu, 09 Dec 2004 20:22:14 GMT
Nick Kew wrote:
> On Thu, 9 Dec 2004, Garrett Rooney wrote:
> 
> 
>>MySQL's API requires you to call a function at startup in order to
>>ensure thread safety.  Is there any provision for doing this in your design?
> 
> 
> Had a think about that.  The obvious answer is an apr_dbd_init function
> running an optional init from each provider, with a static var to ensure
> it only runs once.  Which then raises the followup question: do we
> want a thread_init too?  Simple to add, of course.
> 

We could also just use a one time function in the connection creation 
code.  APR provides the interface, so I suppose we might as well take 
advantage of that fact.

-garrett

Mime
View raw message