MCPcopy Create free account
hub / github.com/Gecode/gecode / wait

Method wait

gecode/support/thread/thread.hpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140#endif
141 }
142 forceinline void
143 Event::wait(void) {
144#ifdef GECODE_HAS_THREADS
145 std::unique_lock<std::mutex> l(m);
146 c.wait(l, [this]{return this->s;});
147 s = false;
148#endif
149 }
150
151
152 /*

Callers 5

runMethod · 0.45
execMethod · 0.45
runMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected