Handle thread canceled case, it is same as signal caused backout,

but will break out of loop.
This commit is contained in:
David Xu 2003-05-02 11:39:00 +00:00
parent 6203d02c6a
commit 99c883294c
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}