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

Reply via email to