[241] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: pthreads and C++

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Jan 19 23:23:21 1996

To: "Lars Jonas Olsson" <jonas@mcs.com>
Cc: pthreads@MIT.EDU
From: raeburn@cygnus.com (Ken Raeburn)
Date: 19 Jan 1996 22:38:51 -0500
In-Reply-To: "Lars Jonas Olsson"'s message of Fri, 19 Jan 1996 07:49:06 -0600 (CST)


   From: "Lars Jonas Olsson" <jonas@mcs.com>
   Date: Fri, 19 Jan 1996 07:49:06 -0600 (CST)


    I have done these on UnixWare so far and now plan to do some similar
   things on FreeBSD (no SMP yet) and pthreads. Are there any special
   installation or other notes for using pthreads on FreeBSD? To
   what extent is lib++/g++ thread-safe?

libg++: I haven't looked, but I would guess "not very".  Look for
anything with static data (.data or .bss); if it's not something that
can be made "const", it's probably not safe.  Don't manipulate any
libg++ object from multiple threads at the same time, unless you
verify yourself that none of the operations can alter the contents;
there are no locks.

g++: Don't use set_new_handler from multiple threads.  Forget
exception handling and profiling.

home help back first fref pref prev next nref lref last post