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

Method Wait

tensorflow/core/lib/core/blocking_counter.h:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 inline void Wait() {
49 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel);
50 if ((v >> 1) == 0) return;
51 mutex_lock l(mu_);
52 while (!notified_) {
53 cond_var_.wait(l);
54 }
55 }
56 // Wait for the specified time, return false iff the count has not dropped to
57 // zero before the timeout expired.
58 inline bool WaitFor(std::chrono::milliseconds ms) {

Callers 4

TESTFunction · 0.45
TESTFunction · 0.45
BM_BlockingCounterFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
BM_BlockingCounterFunction · 0.36