Searched refs:mutex (Results 1 – 2 of 2) sorted by relevance
253 pthread_mutex_t mutex; /* Lock for queue operations. */ member3455 pthread_mutex_destroy (&queue->mutex); in queue_destroy()3468 pthread_mutex_init (&queue->mutex, nullptr); in queue_init()3478 pthread_mutex_lock (&queue->mutex); in queue_insert()3482 pthread_mutex_unlock (&queue->mutex); in queue_insert()3491 pthread_mutex_lock (&queue->mutex); in queue_pop()3493 pthread_cond_wait (&queue->cond, &queue->mutex); in queue_pop()3494 pthread_mutex_unlock (&queue->mutex); in queue_pop()
1689 sort when using multiple threads now avoids undefined behavior with mutex