mysql
mysql copied to clipboard
Use C++ or pthreads for automatic initialization of thread-local variables
We can use the pthread api (pthread_key_create
et al) or a C++ thread_local
variable to automatically initialize the client library on each thread needed.
(See my reply in https://github.com/yesodweb/yesod/issues/1483)