|
From: | Gary V . Vaughan |
Subject: | Re: [RFC] pre-c89 in libltdl |
Date: | Thu, 1 Apr 2004 00:47:45 +0100 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 1 Apr 2004, at 00:41, Bob Friesenhahn wrote:
On Thu, 1 Apr 2004, Gary V.Vaughan wrote:On 31 Mar 2004, at 17:47, Bob Friesenhahn wrote:Libltdl itself is not thread safe.That's a bug! Do you have any test cases? (I have never programmed with threads, so it is entirely possible that the mutex code I added is incredibly naive).Actually, libltdl is documented as being thread unsafe. It offers a way to use user-supplied locking functions so it could become thread safe. Unfortunately, the definitions for these user-supplied locking functions don't match what is available from POSIX threads (the locking must be re-entrant on a per-thread level) so it is not as easily used as it could be.
I see :-( If you were to write a threaddemo typical of how a threaded client might use libltdl, I would be happy to fix libltdl to work with it (after the next release). Cheers, Gary. - -- Gary V. Vaughan ())_. address@hidden,gnu.org} Research Scientist ( '/ http://tkd.kicks-ass.net GNU Hacker / )= http://www.gnu.org/software/libtool Technical Author `(_~)_ http://sources.redhat.com/autobook -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (Darwin) iD8DBQFAa1ilFRMICSmD1gYRAidQAKDG3Sx3cNYG7uC3mWoqDPc/a/I7ygCfU6OT SU2adojJTM8My6Apts8NdQs= =Pi32 -----END PGP SIGNATURE-----
[Prev in Thread] | Current Thread | [Next in Thread] |