diff options
author | rpj <rpj> | 1998-07-25 14:26:49 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-25 14:26:49 +0000 |
commit | ee95385721e0dbd4ba637e78b30101f1c9d24e75 (patch) | |
tree | 679e77e5555d60e74d3b748be295a67c3b13e9d6 /implement.h | |
parent | 74c0f91a6baa41a437cf2b45a209d5041820c131 (diff) |
Sun Jul 26 00:09:59 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* private.c (_pthread_delete_thread_entry): Mutex locks removed.
Mutexes must be applied at the caller level.
(_pthread_new_thread_entry): Ditto.
(_pthread_new_thread_entry): Init cancelstate, canceltype, and
cancel_pending to default values.
(_pthread_new_thread_entry): Rename "this" to "new".
(_pthread_find_thread_entry): Rename "this" to "entry".
(_pthread_delete_thread_entry): Rename "thread_entry" to "entry".
* create.c (_pthread_start_call): Mutexes changed to
_pthread_count_mutex. All access to the threads table entries is
under the one mutex. Otherwise chaos reigns.
Sat Jul 25 23:16:51 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* implement.h (_pthread_threads_thread): Move cancelstate and
canceltype members out of pthread_attr_t into here.
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/implement.h b/implement.h index 807bf0e..3216573 100644 --- a/implement.h +++ b/implement.h @@ -62,7 +62,12 @@ struct _pthread_threads_thread { pthread_t thread; pthread_attr_t attr; _pthread_call_t call; - int cancelthread; + int cancel_pending; + int cancelstate; /* PTHREAD_CANCEL_DISABLE + PTHREAD_CANCEL_ENABLE */ + + int canceltype; /* PTHREAD_CANCEL_ASYNCHRONOUS + PTHREAD_CANCEL_DEFERRED */ void ** joinvalueptr; int join_count; _pthread_handler_node_t * cleanupstack; |