MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / jobqueue_clear

Function jobqueue_clear

src/util/thpool/thpool.c:480–490  ·  view source on GitHub ↗

Clear the queue */

Source from the content-addressed store, hash-verified

478
479/* Clear the queue */
480static void jobqueue_clear(jobqueue *jobqueue_p) {
481
482 while(jobqueue_p->len) {
483 rm_free(jobqueue_pull(jobqueue_p));
484 }
485
486 jobqueue_p->front = NULL;
487 jobqueue_p->rear = NULL;
488 bsem_reset(jobqueue_p->has_jobs);
489 jobqueue_p->len = 0;
490}
491
492/* Add (allocated) job to queue */
493static void jobqueue_push(jobqueue *jobqueue_p, struct job *newjob) {

Callers 1

jobqueue_destroyFunction · 0.85

Calls 3

rm_freeFunction · 0.85
jobqueue_pullFunction · 0.85
bsem_resetFunction · 0.85

Tested by

no test coverage detected