Corrected doc in few places to refer to @synchronized() and not @synchronize()

main
qmathe 15 years ago
parent 775021effa
commit 10cb4f9b5c

@ -18,7 +18,7 @@ Both ABIs support the following feature above and beyond the GCC runtime:
- Low memory profile for platforms where memory usage is more important than - Low memory profile for platforms where memory usage is more important than
speed. speed.
- Synthesised property accessors. - Synthesised property accessors.
- Efficient support for @synchronize() - Efficient support for @synchronized()
- Type-dependent dispatch, eliminating stack corruption from mismatched - Type-dependent dispatch, eliminating stack corruption from mismatched
selectors. selectors.

@ -158,7 +158,7 @@ enum objc_class_flags
*/ */
objc_class_flag_hidden_class = (1<<7), objc_class_flag_hidden_class = (1<<7),
/** /**
* This class is a hidden class used to implement @synchronize() * This class is a hidden class used to implement @synchronized()
*/ */
objc_class_flag_lock_class = (1<<8) objc_class_flag_lock_class = (1<<8)
}; };

@ -44,7 +44,7 @@ void __objc_exec_class(struct objc_module_abi_8 *module)
// this does not perform any synchronization. // this does not perform any synchronization.
INIT_LOCK(objc_runtime_mutex); INIT_LOCK(objc_runtime_mutex);
// Create the lock used to protect the creation of hidden classes by // Create the lock used to protect the creation of hidden classes by
// @synchronize() // @synchronized()
__objc_sync_init(); __objc_sync_init();
// Create the various tables that the runtime needs. // Create the various tables that the runtime needs.

@ -95,7 +95,7 @@ static void deallocLockClass(id obj, SEL _cmd)
Class lockClass = findLockClass(obj); Class lockClass = findLockClass(obj);
Class realClass = class_getSuperclass(lockClass); Class realClass = class_getSuperclass(lockClass);
// Call the real -dealloc method (this ordering is required in case the // Call the real -dealloc method (this ordering is required in case the
// user does @synchronize(self) in -dealloc) // user does @synchronized(self) in -dealloc)
struct objc_super super = {obj, realClass }; struct objc_super super = {obj, realClass };
objc_msgSendSuper(&super, SELECTOR(dealloc)); objc_msgSendSuper(&super, SELECTOR(dealloc));
// After calling [super dealloc], the object will no longer exist. // After calling [super dealloc], the object will no longer exist.

Loading…
Cancel
Save