22#ifndef OF_HAVE_THREADS
23# error No threads available!
26OF_ASSUME_NONNULL_BEGIN
51@property (readonly, nonatomic)
int errNo;
60+ (instancetype)exceptionWithCondition: (
OFCondition *)condition
72- (instancetype)initWithCondition: (
OFCondition *)condition
73 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
75- (instancetype)
init OF_UNAVAILABLE;
A class implementing a condition variable for thread synchronization.
Definition OFCondition.h:34
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
An exception indicating waiting for a condition failed.
Definition OFWaitForConditionFailedException.h:37
OFCondition * condition
The condition for which could not be waited.
Definition OFWaitForConditionFailedException.h:46
int errNo
The errno of the error that occurred.
Definition OFWaitForConditionFailedException.h:51