rfm@gnu.org)Date: Generated at 2025-02-13 06:02:40 +0000
Copyright: (C) 2003-2010 Free Software Foundation, Inc.
- Declared in:
- GNUstepBase/NSLock+GNUstepBase.h
nil. CLASSNAME must be either
NSLock, NSRecursiveLock or one of their subclasses.
See
[NSLock(GNUstepBase) +newLockAt:]
for details. This macro is intended for code that cannot insure that a lock can be initialized in thread safe manner otherwise.
NSLock *my_lock = nil;
void function (void)
{
[GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
do_work ();
[my_lock unlock];
}
nil.
NSLock *my_lock = nil;
void function (void)
{
[GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
do_work ();
[my_lock unlock];
}
- Declared in:
- GNUstepBase/NSLock+GNUstepBase.h
nil.
NSLock *my_lock = nil;
void function (void)
{
[GS_INITIALIZED_LOCK(my_lock, NSLock) lock];
do_work ();
[my_lock unlock];
}