[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-help
Subject:    Re: libthread and libtrivfs
From:       James Morrison <rocketmail_com () rocketmail ! com>
Date:       2002-02-26 16:50:17
[Download RAW message or body]

--- 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic