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

Method needthread

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

Source from the content-addressed store, hash-verified

300
301 template<class Jobs, class RetType>
302 inline bool
303 RunJobs<Jobs,RetType>::Master::needthread(void) {
304 bool n;
305 m.acquire();
306 while (!rs.empty())
307 rs.pop().~RetType();
308 sidx = 0;
309 n = !done();
310 m.release();
311 return n;
312 }
313
314 template<class Jobs, class RetType>
315 inline

Callers 1

~RunJobsMethod · 0.80

Calls 4

acquireMethod · 0.45
emptyMethod · 0.45
popMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected