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

Function butex_destroy

src/bthread/butex.cpp:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void butex_destroy(void* butex) {
274 if (!butex) {
275 return;
276 }
277 Butex* b = static_cast<Butex*>(
278 container_of(static_cast<butil::atomic<int>*>(butex), Butex, value));
279 butil::return_object(b);
280}
281
282// if TaskGroup tls_task_group is belong to tag
283inline bool is_same_tag(bthread_tag_t tag) {

Callers 13

TESTFunction · 0.85
~CoroutineMethod · 0.85
~SocketMethod · 0.85
~RdmaEndpointMethod · 0.85
bthread_mutex_destroyFunction · 0.85
~IdFunction · 0.85
~bthread_once_tMethod · 0.85
bthread_cond_destroyFunction · 0.85
bthread_sem_destroyFunction · 0.85
~ExecutionQueueBaseFunction · 0.85
~TaskMetaMethod · 0.85
fd_waitFunction · 0.85

Calls 1

return_objectFunction · 0.50

Tested by 1

TESTFunction · 0.68