[DB-SIG] DB API 1.1 Spec
Greg Stein
gstein@lyra.org
Thu, 11 Mar 1999 15:23:27 -0800
M.-A. Lemburg wrote:
> Andy Dustman wrote:
> >...
> > And perhaps the point needs to be made that "share" means "two threads
> > using the same resource without a mutex". With a mutex, and the right user
> > locking code, anything ought to be shareable.
>
> Hmm, not sure about that one: the mutex could not be coarse grained
> enough to lock out potential problems ;-) Anyway, I'll add a note
> about the code "being thread safe all by itself".
Even with a mutex, the MSFT SQL Server connector cannot be used from a
different thread. If a thread creates a connection, then that is the
only thread that can use it.
So: the doc shouldn't simply say that a mutex can solve the threading
issues. It could/should reflect one of three possibilities: fully thread
safe, usuable across threads with a mutex, not usable across threads.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/