8 #include <picofuse/sys.h> Defines the NXDuration type, and constants for units of time.
void lock()
Locks it, waiting until no other thread holds it.
int64_t NXDuration
A length of time, in nanoseconds, which may be negative.
void unlock()
Unlocks it, which only the thread which locked it can do.
void signal()
Wakes one thread which is waiting, if there are any.
bool BOOL
A Boolean value.
void broadcast()
Wakes every thread which is waiting.
Defines the NXLocking protocol, for objects which can be locked.
The base class for objects in the Foundation framework.
id init()
Initializes a condition.
void wait()
Unlocks it and waits until it's signalled, then locks it again.
struct objc_object * id
A pointer to an instance of a class.
A lock, and a condition which threads holding it can wait for.
Objects which can be locked by one thread at a time.