diff --git a/README b/README index 5d49768..cc76153 100644 --- a/README +++ b/README @@ -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 speed. - Synthesised property accessors. -- Efficient support for @synchronize() +- Efficient support for @synchronized() - Type-dependent dispatch, eliminating stack corruption from mismatched selectors. diff --git a/class.h b/class.h index 7245ae6..cdc85de 100644 --- a/class.h +++ b/class.h @@ -158,7 +158,7 @@ enum objc_class_flags */ 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) }; diff --git a/loader.c b/loader.c index 393470d..0349c10 100644 --- a/loader.c +++ b/loader.c @@ -44,7 +44,7 @@ void __objc_exec_class(struct objc_module_abi_8 *module) // this does not perform any synchronization. INIT_LOCK(objc_runtime_mutex); // Create the lock used to protect the creation of hidden classes by - // @synchronize() + // @synchronized() __objc_sync_init(); // Create the various tables that the runtime needs. diff --git a/sync.m b/sync.m index 27796f1..68bcd74 100644 --- a/sync.m +++ b/sync.m @@ -95,7 +95,7 @@ static void deallocLockClass(id obj, SEL _cmd) Class lockClass = findLockClass(obj); Class realClass = class_getSuperclass(lockClass); // 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 }; objc_msgSendSuper(&super, SELECTOR(dealloc)); // After calling [super dealloc], the object will no longer exist.