diff --git a/ChangeLog b/ChangeLog index cc2bec196..25d7ba8f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Source/NSThread.m b/Source/NSThread.m index ecf4f1096..0759fbfd7 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -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)"]; } }