[Top][All Lists]
[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: |
Tue, 20 Apr 2004 08:46:36 -0500 (CDT) |
On 20 Apr 2004, Alexandre Oliva wrote:
>
> > As I am on a libltdl code simplification fix, a patch to drop MUTEX
> > fluff
> > entirely will be on its way shortly...
>
> Leaving mutexes up to the caller means that an app that links with
> multiple libraries that each wants to ltdlopen other stuff, odds are
> that the libs are all going to have to be modified to use a single
> mutex. Remember that if each caller uses its own mutex, each one
This is a good point.
The problem with the libltdl thread-safety-support APIs as they exist
today is that they require a higher-level locking mechanism than a
simple POSIX mutex since they require that the user-provided lock be
re-entrant when invoked by the locking thread. POSIX mutexes are not
re-entrant by the same thread.
It is wise to protect dl* calls since any POSIX specification for
these APIs is relatively new and the extra protection should not cause
any harm.
Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen
- Re: [RFC] pre-c89 in libltdl, (continued)
- Re: [RFC] pre-c89 in libltdl, Bob Friesenhahn, 2004/04/15
- Re: [RFC] pre-c89 in libltdl, Simon Josefsson, 2004/04/15
- Re: [RFC] pre-c89 in libltdl, Bob Friesenhahn, 2004/04/15
- RE: [RFC] pre-c89 in libltdl, Howard Chu, 2004/04/15
- Re: [RFC] pre-c89 in libltdl, Gary V . Vaughan, 2004/04/19
- Re: [RFC] pre-c89 in libltdl, Alexandre Oliva, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Simon Josefsson, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Albert Chin, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Simon Josefsson, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Alexandre Oliva, 2004/04/21
- Re: [RFC] pre-c89 in libltdl,
Bob Friesenhahn <=
- Re: [RFC] pre-c89 in libltdl, Gary V. Vaughan, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Bob Friesenhahn, 2004/04/20
- Re: [RFC] pre-c89 in libltdl, Gary V. Vaughan, 2004/04/22
- Re: [RFC] pre-c89 in libltdl, Simon Josefsson, 2004/04/15