32 typedef id (^of_thread_block_t)(
id object);
57 OF_THREAD_NOT_RUNNING,
59 OF_THREAD_WAITING_FOR_JOIN
62 of_thread_block_t block;
68 #if defined(OF_HAVE_PROPERTIES) && defined(OF_HAVE_BLOCKS)
69 @property (copy) of_thread_block_t block;
77 + (instancetype)thread;
85 + (instancetype)threadWithObject: (
id)object;
94 + (instancetype)threadWithBlock: (of_thread_block_t)block;
107 + (void)setObject: (
id)object
118 + (id)objectForTLSKey: (
OFTLSKey*)key;
140 + (void)sleepForTimeInterval: (
double)seconds;
147 + (void)sleepUntilDate: (
OFDate*)date;
165 + (void)terminateWithObject: (
id)object;
167 + (void)OF_createMainThread;
175 - initWithObject: (
id)object;
177 #ifdef OF_HAVE_BLOCKS
184 - initWithBlock: (of_thread_block_t)block;
203 - (void)handleTermination;