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

Method LockD

library/cpp/coroutine/engine/mutex.h:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 int LockD(TCont* current, TInstant deadline) {
18 while (!Token_) {
19 const int ret = WaitQueue_.WaitD(current, deadline);
20
21 if (ret != EWAKEDUP) {
22 return ret;
23 }
24 }
25
26 Token_ = false;
27
28 return 0;
29 }
30
31 int LockT(TCont* current, TDuration timeout) {
32 return LockD(current, timeout.ToDeadLine());

Callers 1

WaitDMethod · 0.80

Calls 1

WaitDMethod · 0.45

Tested by

no test coverage detected