16 #import "OFException.h"
18 #ifndef OF_HAVE_THREADS
19 # error No threads available!
22 OF_ASSUME_NONNULL_BEGIN
47 @property (readonly, nonatomic)
int errNo;
56 + (instancetype)exceptionWithThread: (nullable
OFThread *)thread
59 + (instancetype)exception OF_UNAVAILABLE;
68 - (instancetype)initWithThread: (nullable
OFThread *)thread
69 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
71 - (instancetype)init OF_UNAVAILABLE;
The base class for all exceptions in ObjFW.
Definition: OFException.h:151
An exception indicating that joining a thread failed.
Definition: OFJoinThreadFailedException.h:33
OFThread * thread
The thread which could not be joined.
Definition: OFJoinThreadFailedException.h:42
A class which provides portable threads.
Definition: OFThread.h:62