On Wed, 19 Feb 2003 10:40:12 -0800, Justin Erenkrantz wrote > --On Wednesday, February 19, 2003 10:31 AM -0800 Paul Querna > <[EMAIL PROTECTED]> wrote: > > > The default lib mysqlclient is *only* not thread safe in the > > mysql_connect (hence the mutex locking around those areas), but > > everything else is thread safe. The specialy compiled thread safe > > library is thread safe in all functions. > > Is there a way to detect this at compile-time such that we don't need > to obtain the mutex when we have the good version? -- justin
Acording to the MySQL documentation... http://www.mysql.com/doc/en/Threaded_clients.html The thread safe lib is called mysqlclient_r Therefore, we should be able to detect it at build time which one we are being linked to.... -chip