MCPcopy Create free account
hub / github.com/catboost/catboost / with_lock

Function with_lock

library/cpp/chromium_trace/sampler.cpp:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18void TSamplerThread::AddSampler(TSamplerFunction sampler) {
19 with_lock (SamplersLock) {
20 Samplers.push_back(sampler);
21 }
22}
23
24void TSamplerThread::RunSamplers() {

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.45
WaitTMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected