MCPcopy Create free account
hub / github.com/3rdparty/libprocess / extract

Method extract

src/run_queue.hpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52{
53public:
54 bool extract(ProcessBase* process)
55 {
56 synchronized (mutex) {
57 std::list<ProcessBase*>::iterator it = std::find(
58 processes.begin(),
59 processes.end(),
60 process);
61
62 if (it != processes.end()) {
63 processes.erase(it);
64 return true;
65 }
66 }
67
68 return false;
69 }
70
71 void wait()
72 {

Callers 2

reinitializeFunction · 0.80
waitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected