help-hurd
[Top][All Lists]
Advanced

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

Re: libthread and libtrivfs


From: Neal H Walfield
Subject: Re: libthread and libtrivfs
Date: 26 Feb 2002 00:31:20 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

Stubs are provided for libthreads.  The stubs (which are linked in if
an explicit request to link against libthreads is not added) should be
used for single threaded applications using multithreaded libraries
(such as libtrivfs).  Multithreaded applications cannot safely use the
stubs; they obviously need real locking.

libports is different.  There are no useful stubs that we can provide.
I.e. there is nothing worth optimizing which contrasts the previous
case.  Again, a single threaded application indirectly using
libthreads can safely elide locking by faking it, etc.

You do not need to add `-lports' to the link line as a DT_NEEDED
dependency (look at `obj-dump -p /lib/libtrivfs.so') is declared when
the libtrivfs share object file is created.



reply via email to

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