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

Function bthread_rwlock_destroy

src/bthread/rwlock.cpp:331–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331int bthread_rwlock_destroy(bthread_rwlock_t* rwlock) {
332 bthread_sem_destroy(&rwlock->reader_sema);
333 bthread_sem_destroy(&rwlock->writer_sema);
334 bthread_mutex_destroy(&rwlock->write_queue_mutex);
335 return 0;
336}
337
338int bthread_rwlock_rdlock(bthread_rwlock_t* rwlock) {
339 return bthread::rwlock_rdlock(rwlock);

Callers 2

TESTFunction · 0.85
~RWLockMethod · 0.85

Calls 2

bthread_sem_destroyFunction · 0.85
bthread_mutex_destroyFunction · 0.85

Tested by 1

TESTFunction · 0.68