mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Cleanup ... avoid accessing the 'isa' variable directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4531875573
commit
313cf13c67
19 changed files with 150 additions and 123 deletions
|
@ -54,7 +54,7 @@
|
|||
- (void) _becomeThreaded: (NSNotification*)n
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
isa = [NSLock class];
|
||||
object_setClass(self, [NSLock class]);
|
||||
if (locked == YES)
|
||||
{
|
||||
if ([self tryLock] == NO)
|
||||
|
@ -196,7 +196,7 @@
|
|||
- (void) _becomeThreaded: (NSNotification*)n
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
isa = [NSRecursiveLock class];
|
||||
object_setClass(self, [NSRecursiveLock class]);
|
||||
while (counter-- > 0)
|
||||
{
|
||||
if ([self tryLock] == NO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue