MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AwaitState

Method AwaitState

tensorflow/core/common_runtime/function_testlib.cc:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void BlockingOpState::AwaitState(int awaiting_state) {
62 mutex_lock ml(mu_);
63 while (state_ != awaiting_state) {
64 cv_.wait(ml);
65 }
66}
67
68void BlockingOpState::MoveToState(int expected_current, int next) {
69 mutex_lock ml(mu_);

Callers 3

TEST_FFunction · 0.80
ComputeMethod · 0.80

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected