diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-06-14 17:17:41 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-06-14 17:17:41 +0000 |
| commit | 314be1347ba3b74b5e67aad5053dba8919768624 (patch) | |
| tree | 5b1354c7e5ebafa899c00de702a53fbc1481f1fc /lib/libpthread/thread/thr_private.h | |
| parent | 979ab7516260eb8e17b93759826df578635fdbe9 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
| -rw-r--r-- | lib/libpthread/thread/thr_private.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index a86cfc6de670..6b48f2389b6e 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -350,6 +350,17 @@ struct pthread_attr { #define PTHREAD_CREATE_SUSPENDED 1 /* + * Additional state for a thread suspended with pthread_suspend_np(). + */ +enum pthread_susp { + SUSP_NO, /* Not suspended. */ + SUSP_YES, /* Suspended. */ + SUSP_NOWAIT, /* Suspended, was in a mutex or condition queue. */ + SUSP_MUTEX_WAIT,/* Suspended, still in a mutex queue. */ + SUSP_COND_WAIT /* Suspended, still in a condition queue. */ +}; + +/* * Miscellaneous definitions. */ #define PTHREAD_STACK_DEFAULT 65536 @@ -577,7 +588,7 @@ struct pthread { #define PTHREAD_CANCEL_NEEDED 0x0010 int cancelflags; - int suspended; + enum pthread_susp suspended; thread_continuation_t continuation; |
