| 7661 | q->queued = 0; |
| 7662 | while (it) { |
| 7663 | ds4_dist_worker_job *next = it->next; |
| 7664 | dist_worker_job_free(it); |
| 7665 | it = next; |
| 7666 | } |
| 7667 | } |
| 7668 | |
| 7669 | static void dist_worker_job_queue_destroy(ds4_dist_worker_job_queue *q) { |
| 7670 | pthread_mutex_lock(&q->mu); |
| 7671 | dist_worker_job_queue_clear_locked(q); |
| 7672 | pthread_mutex_unlock(&q->mu); |
| 7673 | pthread_cond_destroy(&q->not_full); |
| 7674 | pthread_cond_destroy(&q->not_empty); |
no test coverage detected