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

Method push

contribs/qecode/WorkManager.cc:39–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void WorkPool::push(QWork q) {
40 list<QWork>::iterator i = l.begin();
41 while (i != l.end() && cmp->cmp((*i),q)) i++;
42 l.insert(i,q);
43}
44
45QWork WorkPool::pop() {
46 QWork ret=l.front();

Callers 2

WorkManagerMethod · 0.45
returnWorkMethod · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
cmpMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected