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

Function dist_worker_job_queue_cancel

ds4_distributed.c:7663–7671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
7669static 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);

Callers 2

Calls 1

Tested by

no test coverage detected