fix faulty assert

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33560 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-07-15 13:46:51 +00:00
parent 6264555674
commit 8dadaadea4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-07-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSThread.m: Fix faulty assert.
2011-07-12 Richard Frith-Macdonald <rfm@gnu.org> 2011-07-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSFileHandle.m: * Source/NSFileHandle.m:

View file

@ -329,7 +329,7 @@ GSCurrentThread(void)
NSThread *thr = pthread_getspecific(thread_object_key); NSThread *thr = pthread_getspecific(thread_object_key);
if (nil == thr) if (nil == thr)
{ {
assert(GSRegisterCurrentThread() && @"Failed to register thread"); GSRegisterCurrentThread();
thr = pthread_getspecific(thread_object_key); thr = pthread_getspecific(thread_object_key);
if ((nil == defaultThread) && IS_MAIN_PTHREAD) if ((nil == defaultThread) && IS_MAIN_PTHREAD)
{ {
@ -1325,6 +1325,7 @@ GSRegisterCurrentThread (void)
{ {
return [NSThread _createThreadForCurrentPthread]; return [NSThread _createThreadForCurrentPthread];
} }
/** /**
* <p> * <p>
* This function is provided to let threads started by some other * This function is provided to let threads started by some other