mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Handle thread canceled case, it is same as signal caused backout,
but will break out of loop.
This commit is contained in:
parent
6203d02c6a
commit
99c883294c
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue