247 |
t = (NSThread*)objc_thread_get_data(); |
t = (NSThread*)objc_thread_get_data(); |
248 |
if (t == nil) |
if (t == nil) |
249 |
{ |
{ |
250 |
fprintf(stderr, "ALERT ... GSCurrentThread() ... the " |
fprintf(stderr, |
251 |
"objc_thread_get_data() call returned nil!"); |
"ALERT ... GSCurrentThread() ... objc_thread_get_data() call returned nil!\r\n" |
252 |
|
"Your application MUST call GSRegisterCurrentThread() before attempting to\r\n" |
253 |
|
"use any GNUstep code from a thread other than the main GNUstep thread.\r\n"); |
254 |
fflush(stderr); // Needed for windoze |
fflush(stderr); // Needed for windoze |
255 |
} |
} |
256 |
} |
} |
399 |
} |
} |
400 |
NS_HANDLER |
NS_HANDLER |
401 |
{ |
{ |
402 |
|
fprintf(stderr, |
403 |
|
"ALERT ... exception while becoming multi-threaded ... system may not be\r\n" |
404 |
|
"properly initialised.\r\n"); |
405 |
|
fflush(stderr); |
406 |
} |
} |
407 |
NS_ENDHANDLER |
NS_ENDHANDLER |
408 |
entered_multi_threaded_state = YES; |
entered_multi_threaded_state = YES; |