mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Thread safety fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20179 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cf50088545
commit
78ab0dc2b2
2 changed files with 10 additions and 0 deletions
|
@ -1060,7 +1060,9 @@ static NSNotificationCenter *default_center = nil;
|
|||
(*o->method)(o->observer, o->selector, notification);
|
||||
}
|
||||
}
|
||||
lockNCTable(TABLE);
|
||||
GSIArrayEmpty(a);
|
||||
unlockNCTable(TABLE);
|
||||
|
||||
#if 0
|
||||
NS_HANDLER
|
||||
|
@ -1068,7 +1070,9 @@ static NSNotificationCenter *default_center = nil;
|
|||
/*
|
||||
* If we had a problem - release memory before going on.
|
||||
*/
|
||||
lockNCTable(TABLE);
|
||||
GSIArrayEmpty(a);
|
||||
unlockNCTable(TABLE);
|
||||
RELEASE(notification);
|
||||
[localException raise];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue