[162] in Pthreads mailing list archive
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.