From 2403f62b073fe92d01e03115b8e1b00fc4c338f3 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 3 Jun 2010 17:35:45 +0000 Subject: [PATCH] Don't bother trying to register a thread creation callback with libobjc2 - it's never used. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30561 72102866-910b-0410-8b05-ffd578937521 --- Source/NSThread.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/NSThread.m b/Source/NSThread.m index 1ea39b647..fb90966b9 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -567,7 +567,11 @@ unregisterActiveThread(NSThread *thread) * if we have become multi-threaded due to a call to the runtime directly * rather than via the NSThread class. */ +#if defined(__GNUSTEP_RUNTIME__) || defined(__NEXT_RUNTIME__) + gnustep_base_thread_callback(); +#else objc_set_thread_callback(gnustep_base_thread_callback); +#endif } }