diff options
author | Christopher Faylor <me@cgf.cx> | 2005-06-11 04:56:36 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-06-11 04:56:36 +0000 |
commit | 8556456790cc823243ae05435af07dc1bc5b2f2e (patch) | |
tree | 8eacf67b67c1d0ce09d0faa4a27aeb532afcf506 /winsup/testsuite/winsup.api/pthread/mutex4.c | |
parent | b4177338e194ad5fae4241eab9c85b9ae6554d6b (diff) | |
download | cygnal-8556456790cc823243ae05435af07dc1bc5b2f2e.tar.gz cygnal-8556456790cc823243ae05435af07dc1bc5b2f2e.tar.bz2 cygnal-8556456790cc823243ae05435af07dc1bc5b2f2e.zip |
* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL.
Revert PTHREAD_MUTEX_INITIALIZER to PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
since that is actually closer to what linux does.
* thread.h (cw_cancel_action): New enum.
(cancelable_wait): Use cw_cancel_action as third argument.
* thread.cc (cancelable_wait): Ditto. Don't wait for cancel if cancel_action
== cw_no_cancel.
(pthread::create): Don't wait for cancel event since that is racy.
(pthread_mutex::pthread_mutex): Set default to PTHREAD_MUTEX_ERRORCHECK.
(pthread_mutexattr::pthread_mutexattr): Ditto.
(pthread_mutex::_lock): Tell cancelable_wait not to wait for cancellation
event.
(semaphore::_timedwait): Accommodate change in cancelable_wait args.
(pthread::join): Ditto.
Diffstat (limited to 'winsup/testsuite/winsup.api/pthread/mutex4.c')
0 files changed, 0 insertions, 0 deletions