This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: POSIX threads documentation


On Monday, September 13, 2010 10:48:19 Carlos O'Donell wrote:
> On Mon, Sep 13, 2010 at 10:42 AM, Andreas Schwab <schwab@redhat.com> wrote:
> > "Carlos O'Donell" <carlos@systemhalted.org>
> > 
> > writes:
> >> Can you do this?
> >> 
> >> if (pthread_mutex_lock != 0)
> >> {
> >>   /* OK, thread library is loaded so we need to use a threading
> >>      API to ensure correct handling of global data.  */
> >>   ...
> >> }
> > 
> > There is no need for that, all relevant pthread functions are available
> > in libc (as stubs that forward to libpthread if loaded).
> 
> Perfect. I've never used the stubs. Are all of them available or only
> a subset? Do we document the subset somewhere?

only a subset.  sometimes an annoying subset when it lacks the ones you happen 
to be working with.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]