- fixed mutex_unlock hander for getter

This commit is contained in:
Martin Willi 2005-11-04 09:38:28 +00:00
parent d50ce228fd
commit 4486d5900a
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ status_t get(private_job_queue_t *this, job_t **job)
{
pthread_cond_wait( &(this->condvar), &(this->mutex));
}
// remove mutex-unlock handler
pthread_cleanup_pop(1);
// remove mutex-unlock handler (without executing)
pthread_cleanup_pop(0);
this->list->remove_first(this->list,(void **) job);
pthread_mutex_unlock(&(this->mutex));