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

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