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

Method stop

gecode/support/run-jobs.hpp:224–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223 template<class Jobs, class RetType>
224 forceinline void
225 RunJobs<Jobs,RetType>::Master::stop(RetType r, int i) {
226 m.acquire();
227 if (!stopped()) {
228 sres=r; sidx = i;
229 }
230 rs.push(r);
231 e.signal();
232 m.release();
233 }
234
235 template<class Jobs, class RetType>
236 void

Callers 1

runMethod · 0.45

Calls 4

acquireMethod · 0.45
pushMethod · 0.45
signalMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected