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

Function CoCondVar

library/cpp/coroutine/engine/coroutine_ut.cpp:295–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293static TContCondVar c1;
294
295static void CoCondVar(TCont* c, void* /*run*/) {
296 for (size_t i4 = 0; i4 < 3; ++i4) {
297 UNIT_ASSERT_EQUAL(m1.LockI(c), 0);
298 UNIT_ASSERT_EQUAL(c1.WaitI(c, &m1), 0);
299 res += c->Name();
300 m1.UnLock();
301 }
302}
303
304static void CoCondVarTest(TCont* c, void* /*run*/) {
305 c->Executor()->Create(CoCondVar, nullptr, "1");

Callers

nothing calls this directly

Calls 4

LockIMethod · 0.80
UnLockMethod · 0.80
WaitIMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected