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

Method SimuFutex

src/bthread/sys_futex.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32class SimuFutex {
33public:
34 SimuFutex() : counts(0)
35 , ref(0) {
36 pthread_mutex_init(&lock, NULL);
37 pthread_cond_init(&cond, NULL);
38 }
39 ~SimuFutex() {
40 pthread_mutex_destroy(&lock);
41 pthread_cond_destroy(&cond);

Callers

nothing calls this directly

Calls 1

pthread_mutex_initFunction · 0.85

Tested by

no test coverage detected