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

Method synchronized

src/run_queue.hpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected