aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/job_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/job_queue.c')
-rw-r--r--Source/charon/job_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/charon/job_queue.c b/Source/charon/job_queue.c
index 3844004a1..ed370ed2c 100644
--- a/Source/charon/job_queue.c
+++ b/Source/charon/job_queue.c
@@ -82,6 +82,7 @@ static status_t get(private_job_queue_t *this, job_t **job)
/* add mutex unlock handler for cancellation, enable cancellation */
pthread_cleanup_push((void(*)(void*))pthread_mutex_unlock, (void*)&(this->mutex));
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &oldstate);
+
pthread_cond_wait( &(this->condvar), &(this->mutex));
/* reset cancellation, remove mutex-unlock handler (without executing) */