From 10a5205738a1a7ca38cfeccd4fe50740796b5767 Mon Sep 17 00:00:00 2001 From: davidxu Date: Fri, 2 May 2003 11:39:00 +0000 Subject: Handle thread canceled case, it is same as signal caused backout, but will break out of loop. --- lib/libpthread/thread/thr_cond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpthread/thread') diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c index 32a152d..12c14db 100644 --- a/lib/libpthread/thread/thr_cond.c +++ b/lib/libpthread/thread/thr_cond.c @@ -326,7 +326,7 @@ _pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) * that the mutex be reaquired prior to * cancellation. */ - if (done != 0) { + if (done || interrupted) { rval = _mutex_cv_lock(mutex); unlock_mutex = 1; } -- cgit v1.1