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

Function thpool_queue_full

src/util/thpool/thpool.c:273–278  ·  view source on GitHub ↗

return true if thread pool internal queue is full with pending work

Source from the content-addressed store, hash-verified

271
272// return true if thread pool internal queue is full with pending work
273bool thpool_queue_full(thpool_* thpool_p) {
274 ASSERT(thpool_p != NULL);
275
276 // test if there's enough room in thread pool queue
277 return (thpool_p->jobqueue.len >= thpool_p->jobqueue.cap);
278}
279
280void thpool_set_jobqueue_cap
281(

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected