Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
148
int bthread_sem_destroy(bthread_sem_t* semaphore) {
149
bthread::butex_destroy(semaphore->butex);
150
return 0;
151
}
152
153
int bthread_sem_trywait(bthread_sem_t* sem) {
154
return bthread::bthread_sem_trywait(sem);
Callers
3
TEST
Function · 0.85
bthread_rwlock_init
Function · 0.85
bthread_rwlock_destroy
Function · 0.85
Calls
1
butex_destroy
Function · 0.85
Tested by
1
TEST
Function · 0.68