| 7644 | static void dist_worker_job_queue_init( |
| 7645 | ds4_dist_worker_job_queue *q, |
| 7646 | ds4_dist_worker_state *state, |
| 7647 | ds4_dist_worker_upstream *upstream) { |
| 7648 | memset(q, 0, sizeof(*q)); |
| 7649 | q->state = state; |
| 7650 | q->upstream = upstream; |
| 7651 | q->depth = dist_worker_prefetch_depth(); |
| 7652 | pthread_mutex_init(&q->mu, NULL); |
| 7653 | pthread_cond_init(&q->not_empty, NULL); |
| 7654 | pthread_cond_init(&q->not_full, NULL); |
| 7655 | } |
| 7656 |
no test coverage detected