MCPcopy Create free account
hub / github.com/antirez/ds4 / dist_worker_job_queue_destroy

Function dist_worker_job_queue_destroy

ds4_distributed.c:7646–7653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7644static 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

Callers 1

Calls 1

Tested by

no test coverage detected