27 typedef id (^of_thread_block_t)(
id object);
52 OF_THREAD_NOT_RUNNING,
54 OF_THREAD_WAITING_FOR_JOIN
57 of_thread_block_t block;
63 #if defined(OF_HAVE_PROPERTIES) && defined(OF_HAVE_BLOCKS)
64 @property (copy) of_thread_block_t block;
72 + (instancetype)thread;
80 + (instancetype)threadWithObject: (
id)object;
89 + (instancetype)threadWithBlock: (of_thread_block_t)block;
102 + (void)setObject: (
id)object
113 + (id)objectForTLSKey: (
OFTLSKey*)key;
135 + (void)sleepForTimeInterval: (
double)seconds;
142 + (void)sleepUntilDate: (
OFDate*)date;
160 + (void)terminateWithObject: (
id)object;
162 + (void)OF_createMainThread;
170 - initWithObject: (
id)object;
172 #ifdef OF_HAVE_BLOCKS
179 - initWithBlock: (of_thread_block_t)block;
198 - (void)handleTermination;