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

Function bsem_post

src/util/thpool/thpool.c:570–575  ·  view source on GitHub ↗

Post to at least one thread */

Source from the content-addressed store, hash-verified

568
569/* Post to at least one thread */
570static void bsem_post(bsem *bsem_p) {
571 pthread_mutex_lock(&bsem_p->mutex);
572 bsem_p->v = 1;
573 pthread_cond_signal(&bsem_p->cond);
574 pthread_mutex_unlock(&bsem_p->mutex);
575}
576
577/* Post to all threads */
578static void bsem_post_all(bsem *bsem_p) {

Callers 2

jobqueue_pushFunction · 0.85
jobqueue_pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected