POSIX threads documentation
Andreas Schwab
schwab@redhat.com
Mon Sep 13 14:42:00 GMT 2010
"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).
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
More information about the Libc-help
mailing list