mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
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:
parent
6264555674
commit
8dadaadea4
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* Source/NSFileHandle.m:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue