mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
don't try to cleanup on main thread exit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29478 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c11dee837
commit
1a353d2514
1 changed files with 1 additions and 8 deletions
|
@ -327,14 +327,7 @@ static pthread_key_t thread_object_key;
|
||||||
*/
|
*/
|
||||||
static void exitedThread(void *thread)
|
static void exitedThread(void *thread)
|
||||||
{
|
{
|
||||||
if (thread == defaultThread)
|
if (thread != defaultThread)
|
||||||
{
|
|
||||||
NSThread *t = defaultThread;
|
|
||||||
|
|
||||||
defaultThread = nil;
|
|
||||||
[t dealloc];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
fprintf(stderr, "WARNING thread %p terminated without calling +exit!\n",
|
fprintf(stderr, "WARNING thread %p terminated without calling +exit!\n",
|
||||||
thread);
|
thread);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue