On 7 Nov 2006, at 14:44, Matt Rice wrote:

--- Graham J Lee <[EMAIL PROTECTED]> wrote:


It looks like it might be racy, because if I step
past the section
(lines 551-555 here, I'm on base 1.13.0) in
NSThread.m:
   if

(objc_thread_detach(@selector(__sendThreadMethod),thread,nil)

== NULL)
     {
       [NSException raise:
NSInternalConsistencyException
                   format: @"Unable to detach thread
(unknown error)"];
     } // <--step to here
}

this little trouble maker looks awfully familiar

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18573

it could be that 0 is a valid thread id in whichever
threading model your libobjc is compiled with

this was the case on hurd/posix threads, but they
changed the first thread to 1 i believe

But posix threads sets errno if it can't create a thread, shouldn't [*] the ObjC threading be similarly signalling errors out-of-band?
[*] with the shield of "in a perfect world" primed and ready...

Cheers,
Graham.
--
Graham J Lee
http://www.thaesofereode.info/




_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to