39typedef struct ThreadInterface ThreadInterface;
106struct ThreadInterface {
111 ObjectInterface objectInterface;
119 void (*cancel)(
Thread *self);
128 Thread *(*currentThread)(void);
136 void (*detach)(
Thread *self);
175 void (*kill)(
Thread *self,
int signal);
183 void (*start)(
Thread *self);
Object is the root Class of The Objectively Class hierarchy.
OBJECTIVELY_EXPORT Class * _Thread(void)
ident(* ThreadFunction)(Thread *thread)
The function type for Thread execution.
void * ident
The identity type, similar to Objective-C id.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
bool isExecuting
true when this Thread is executing, false otherwise.
ThreadInterface * interface
The interface.
bool isDetached
true when this Thread has been detached, false otherwise.
ThreadFunction function
The Thread function.
bool isFinished
true when this Thread is finished, false otherwise.
Object object
The superclass.
bool isCancelled
true when this Thread has been cancelled, false otherwise.