summaryrefslogtreecommitdiff
path: root/pthread_mutex_timedlock.c
diff options
context:
space:
mode:
authorrpj <rpj>2002-12-17 08:01:50 +0000
committerrpj <rpj>2002-12-17 08:01:50 +0000
commit8da677c58a7c95a4bf83808d9395ea7e8d49f18e (patch)
tree217e17e4738d87d0d2adb71361b76cf06590296c /pthread_mutex_timedlock.c
parent52c1047709bbc61fa793bcc6a28daabea88d2a20 (diff)
* pthread_mutex_lock.c (ptw32_semwait): New static routine to provide
a non-cancelable sem_wait() function. This is consistent with the way that pthread_mutex_timedlock.c does it. (pthread_mutex_lock): Use ptw32_semwait() instead of sem_wait().
Diffstat (limited to 'pthread_mutex_timedlock.c')
-rw-r--r--pthread_mutex_timedlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pthread_mutex_timedlock.c b/pthread_mutex_timedlock.c
index da03c03..c553a53 100644
--- a/pthread_mutex_timedlock.c
+++ b/pthread_mutex_timedlock.c
@@ -60,6 +60,8 @@ ptw32_timed_semwait (sem_t * sem, const struct timespec * abstime)
* If 'abstime' is a NULL pointer then this function will
* block until it can successfully decrease the value or
* until interrupted by a signal.
+ *
+ * Unlike sem_timedwait(), this routine is not a cancelation point.
*
* RESULTS
* 2 abstime has passed already