[666] in Pthreads mailing list archive
pthreads 1.60 beta6
daemon@ATHENA.MIT.EDU (monty@tcx.se)
Wed Jun 18 15:18:36 1997
Date: Wed, 18 Jun 1997 22:05:51 +0300 (EET DST)
From: <monty@tcx.se>
To: Jeffrey Graham <jgraham@mickey.jsc.nasa.gov>
Cc: pthreads@MIT.EDU
In-Reply-To: <33A7ECEC.167E@mickey.jsc.nasa.gov>
Reply-To: monty@analytikerna.se
>>>>> "Jeffrey" == Jeffrey Graham <jgraham@mickey.jsc.nasa.gov> writes:
Jeffrey> Chris,
Jeffrey> I am trying to use your pthreads package on sunOs 4.1.3_U1 2 sun4c using
Jeffrey> gcc version 2.7.2.2.f.2
Jeffrey> I get cores when attempting to use pthreads with c++ code, specifically
Jeffrey> cin (don't know if other problems exist yet, since cannot get past
Jeffrey> this).
Jeffrey> I am new to threads, but get the strong impression that c++ and its
Jeffrey> overhead
Jeffrey> don't deal well with reentrancy and buffered IO!
c++ is not a problem. We use MySQL with MIT threads on Sunos without
any problem. Everything works as long as you DO NOT use the g++ (or c++)
standard library.
If you are compiling with gcc, use 'gcc' to compile c++ code instead
of 'c++'. In this case gcc doesn't pull in any unexpected libraries.
Yes, io_streams are out when using MIT threads. FILE works without
any problem.
Yours, Monty