Optimisation mostly

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4098 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-04-19 14:29:52 +00:00
parent 832c4c2ec2
commit 84e7ffcdef
17 changed files with 697 additions and 319 deletions

View file

@ -108,7 +108,7 @@ _NSFoundationUncaughtExceptionHandler(NSException *exception)
if (_NSUncaughtExceptionHandler == NULL)
_NSUncaughtExceptionHandler = _NSFoundationUncaughtExceptionHandler;
thread = [NSThread currentThread];
thread = GSCurrentThread();
handler = thread->_exception_handler;
if (handler == NULL) {
_NSUncaughtExceptionHandler(self);
@ -185,18 +185,18 @@ _NSFoundationUncaughtExceptionHandler(NSException *exception)
void
_NSAddHandler( NSHandler *handler )
{
NSThread *thread;
NSThread *thread;
thread = [NSThread currentThread];
handler->next = thread->_exception_handler;
thread->_exception_handler = handler;
thread = GSCurrentThread();
handler->next = thread->_exception_handler;
thread->_exception_handler = handler;
}
void
_NSRemoveHandler( NSHandler *handler )
{
NSThread *thread;
NSThread *thread;
thread = [NSThread currentThread];
thread->_exception_handler = thread->_exception_handler->next;
thread = GSCurrentThread();
thread->_exception_handler = thread->_exception_handler->next;
}