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

Function bsem_post_all

src/util/thpool/thpool.c:578–583  ·  view source on GitHub ↗

Post to all threads */

Source from the content-addressed store, hash-verified

576
577/* Post to all threads */
578static void bsem_post_all(bsem *bsem_p) {
579 pthread_mutex_lock(&bsem_p->mutex);
580 bsem_p->v = 1;
581 pthread_cond_broadcast(&bsem_p->cond);
582 pthread_mutex_unlock(&bsem_p->mutex);
583}
584
585/* Wait on semaphore until semaphore has value 0 */
586static void bsem_wait(bsem *bsem_p) {

Callers 1

thpool_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected