diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-01-27 23:07:25 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-01-27 23:07:25 +0000 |
| commit | 9233c4d9426e03b28e043baeefb6d5a37dc4086e (patch) | |
| tree | 8606358bf2ae9c436cce380d290e7a73f9cddfc6 /lib/libpthread/thread/thr_sem.c | |
| parent | 072229cdbb757229b7e11f102da326679db27d0e (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sem.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sem.c b/lib/libpthread/thread/thr_sem.c index 8adb0d46d562..d35f9bc3df1b 100644 --- a/lib/libpthread/thread/thr_sem.c +++ b/lib/libpthread/thread/thr_sem.c @@ -147,6 +147,8 @@ sem_wait(sem_t *sem) { int retval; + _thread_enter_cancellation_point(); + _SEM_CHECK_VALIDITY(sem); pthread_mutex_lock(&(*sem)->lock); @@ -162,6 +164,7 @@ sem_wait(sem_t *sem) retval = 0; RETURN: + _thread_leave_cancellation_point(); return retval; } |
