mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Improve warning messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17758 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5401a03dd3
commit
c7551b0431
1 changed files with 8 additions and 2 deletions
|
@ -247,8 +247,10 @@ GSCurrentThread()
|
|||
t = (NSThread*)objc_thread_get_data();
|
||||
if (t == nil)
|
||||
{
|
||||
fprintf(stderr, "ALERT ... GSCurrentThread() ... the "
|
||||
"objc_thread_get_data() call returned nil!");
|
||||
fprintf(stderr,
|
||||
"ALERT ... GSCurrentThread() ... objc_thread_get_data() call returned nil!\r\n"
|
||||
"Your application MUST call GSRegisterCurrentThread() before attempting to\r\n"
|
||||
"use any GNUstep code from a thread other than the main GNUstep thread.\r\n");
|
||||
fflush(stderr); // Needed for windoze
|
||||
}
|
||||
}
|
||||
|
@ -397,6 +399,10 @@ gnustep_base_thread_callback()
|
|||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
fprintf(stderr,
|
||||
"ALERT ... exception while becoming multi-threaded ... system may not be\r\n"
|
||||
"properly initialised.\r\n");
|
||||
fflush(stderr);
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
entered_multi_threaded_state = YES;
|
||||
|
|
Loading…
Reference in a new issue