Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
run
Method · 0.45
exec
Method · 0.45
run
Method · 0.45
acquire
Method · 0.45
release
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected