From 8da677c58a7c95a4bf83808d9395ea7e8d49f18e Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 17 Dec 2002 08:01:50 +0000 Subject: * 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(). --- pthread_mutex_timedlock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pthread_mutex_timedlock.c') 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 -- cgit v1.2.3