60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
* so context can be associated with a thread.
*/
@interface OFThread: OFObject
#ifdef OF_HAVE_THREADS
<OFCopying>
{
@private
of_thread_t _thread;
of_thread_attr_t _attr;
enum of_thread_running {
OF_THREAD_NOT_RUNNING,
OF_THREAD_RUNNING,
OF_THREAD_WAITING_FOR_JOIN
} _running;
# ifndef OF_OBJFW_RUNTIME
void *_pool;
# endif
# ifdef OF_HAVE_BLOCKS
OFThreadBlock _Nullable _threadBlock;
# endif
|
|
|
|
|
|
|
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
* so context can be associated with a thread.
*/
@interface OFThread: OFObject
#ifdef OF_HAVE_THREADS
<OFCopying>
{
@private
OFPlainThread _thread;
OFPlainThreadAttributes _attr;
enum OFThreadState {
OFThreadStateNotRunning,
OFThreadStateRunning,
OFThreadStateWaitingForJoin
} _running;
# ifndef OF_OBJFW_RUNTIME
void *_pool;
# endif
# ifdef OF_HAVE_BLOCKS
OFThreadBlock _Nullable _threadBlock;
# endif
|