help-hurd
[Top][All Lists]
Advanced

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

Re: libthread and libtrivfs


From: James Morrison
Subject: Re: libthread and libtrivfs
Date: Tue, 26 Feb 2002 08:50:17 -0800 (PST)

--- Neal H Walfield <neal@cs.uml.edu> wrote:
> 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.
> 

 Thanks, this makes sense.


=====
James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   2A co-op
http://hurd.dyndns.org

Anyone refering this as 'Open Source' shall be eaten by a GNU

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com



reply via email to

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