[EMAIL PROTECTED] wrote:
Every Windows DLL can provide a DllMain function. This function gets called
whenever a thread gets created or destroyed.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dllmain.asp
Except that not all of us use Sqlite as a DLL. We statically link it
directly into our multi-threaded application. Fortunately for us, we
create a fixed number of threads at startup and after that, do not
create nor destroy any threads that use sqlite until shutdown.