--- Marco Bambini <[EMAIL PROTECTED]> wrote:
> I think that sqlite3_initialize should be allowed to be called more  
> than once.
> With the help of a static flag, only the first time it is executed  
> the proper initialize functions will be invoked, successive calls to  
> the sqlite3_initialize should just be a NOP operation...

In a single-threaded program, perhaps.
But in a multi-threaded program beware the Double Checked Lock:

http://en.wikipedia.org/wiki/Double-checked_locking
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to