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

Method MVarMapWithLock

src/bvar/mvariable.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 pthread_mutex_t mutex;
83
84 MVarMapWithLock() {
85 if (init(256) != 0) {
86 LOG(WARNING) << "Fail to init";
87 }
88 pthread_mutex_init(&mutex, NULL);
89 }
90};
91
92// We have to initialize global map on need because bvar is possibly used

Callers

nothing calls this directly

Calls 1

pthread_mutex_initFunction · 0.85

Tested by

no test coverage detected