MCPcopy Create free account
hub / github.com/apache/brpc / bthread_sem_destroy

Function bthread_sem_destroy

src/bthread/semaphore.cpp:148–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148int bthread_sem_destroy(bthread_sem_t* semaphore) {
149 bthread::butex_destroy(semaphore->butex);
150 return 0;
151}
152
153int bthread_sem_trywait(bthread_sem_t* sem) {
154 return bthread::bthread_sem_trywait(sem);

Callers 3

TESTFunction · 0.85
bthread_rwlock_initFunction · 0.85
bthread_rwlock_destroyFunction · 0.85

Calls 1

butex_destroyFunction · 0.85

Tested by 1

TESTFunction · 0.68