bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread (usually) not doing what I'd expect


From: Graham J Lee
Subject: Re: Thread (usually) not doing what I'd expect
Date: Tue, 7 Nov 2006 15:47:50 +0000

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

--- Graham J Lee <leeg@thaesofereode.info> 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/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]