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

Method signal

gecode/support/thread/thread.hpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 forceinline
131 Event::Event(void) : s(false) {}
132 forceinline void
133 Event::signal(void) {
134#ifdef GECODE_HAS_THREADS
135 std::unique_lock<std::mutex> l(m);
136 if (!s) {
137 s = true;
138 c.notify_one();
139 }
140#endif
141 }
142 forceinline void
143 Event::wait(void) {
144#ifdef GECODE_HAS_THREADS

Callers 7

nextMethod · 0.45
reportMethod · 0.45
stopMethod · 0.45
runMethod · 0.45
runMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected