Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Gecode/gecode
/ stopAndReturn
Method
stopAndReturn
contribs/qecode/Worker.cc:55–59 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
53
}
54
55
void QWorker::stopAndReturn() {
56
access.acquire();
57
if (stopandforget < 1) stopandforget=1;
58
access.release();
59
}
60
61
void QWorker::stopAndForget() {
62
access.acquire();
Callers
1
getNewWorks
Method · 0.80
Calls
2
acquire
Method · 0.45
release
Method · 0.45
Tested by
no test coverage detected