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:
CaS 2003-09-30 18:57:49 +00:00
parent 5401a03dd3
commit c7551b0431

View file

@ -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;