mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
832c4c2ec2
commit
84e7ffcdef
17 changed files with 697 additions and 319 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue