libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] pre-c89 in libltdl


From: Bob Friesenhahn
Subject: Re: [RFC] pre-c89 in libltdl
Date: Wed, 31 Mar 2004 17:41:58 -0600 (CST)

On Thu, 1 Apr 2004, Gary V.Vaughan wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]