[162] in Pthreads mailing list archive

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

Re: An idea for pthreads

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Wed Oct 25 17:49:35 1995

Date: Wed, 25 Oct 1995 17:25:59 -0400
From: Ken Raeburn <raeburn@cygnus.com>
To: pthreads@MIT.EDU
In-Reply-To: aab@cichlid.com's message of Wed, 25 Oct 95 12:24 PDT


   From: aab@cichlid.com (Andy Burgess)
   Date: Wed, 25 Oct 95 12:24 PDT

   I think the idea was to call the C lib fcn and then do some housekeeping
   before returning, eg (in pseudo code): errno_table[thread] = errno

You'd have to disable the thread scheduler in order to ensure that
errno wasn't changed by some other thread between the setting and
reading.  Not pretty.  Better to avoid the situation completely if
possible.

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