Note to self: type svn commit in the correct window.

main
theraven 15 years ago
parent 5c925929b4
commit fa2e7a9d95

@ -98,7 +98,7 @@ static void deallocLockClass(id obj, SEL _cmd)
objc_msg_lookup_super(&super, SELECTOR(dealloc))(obj, SELECTOR(dealloc)); objc_msg_lookup_super(&super, SELECTOR(dealloc))(obj, SELECTOR(dealloc));
// After calling [super dealloc], the object will no longer exist. // After calling [super dealloc], the object will no longer exist.
// Free the lock // Free the lock
mutex_t *lock = (void*)(newClass+1); mutex_t *lock = (void*)(lockClass+1);
DESTROY_LOCK(lock); DESTROY_LOCK(lock);
// FIXME: Low memory profile. // FIXME: Low memory profile.
@ -124,7 +124,7 @@ int objc_sync_enter(id obj)
} }
UNLOCK(&at_sync_init_lock); UNLOCK(&at_sync_init_lock);
} }
mutex_t *lock = (void*)(newClass+1); mutex_t *lock = (void*)(lockClass+1);
LOCK(lock); LOCK(lock);
return 0; return 0;
} }
@ -132,7 +132,7 @@ int objc_sync_enter(id obj)
int objc_sync_exit(id obj) int objc_sync_exit(id obj)
{ {
Class lockClass = findLockClass(obj); Class lockClass = findLockClass(obj);
mutex_t *lock = (void*)(newClass+1); mutex_t *lock = (void*)(lockClass+1);
UNLOCK(lock); UNLOCK(lock);
return 0; return 0;
} }

Loading…
Cancel
Save