Minor thread fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-09-30 17:19:35 +00:00
parent 31cc95eea9
commit f7d1a66144
2 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,8 @@
* Source/NSCalendarDate.m: Tidy up a little.
* Source/NSTimeZone.m: Rewrite main timezone code for performance -
Roughly doubles speed of most NSCalendarDate stuff.
* NSThread.m: Fix for single threaded operation ... suggested by
Ludovic Marcotte.
2002-09-29 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -249,8 +249,9 @@ gnustep_base_thread_callback()
*/
if (objc_thread_detach(@selector(_sendThreadMethod), thread, nil) == NULL)
{
/* This should probably be an exception */
NSLog(@"Unable to detach thread (unknown error)");
entered_multi_threaded_state = NO;
[NSException raise: NSInternalInconsistencyException
format: @"Unable to detach thread (unknown error)"];
}
}