MCPcopy Create free account
hub / github.com/apache/mesos / synchronized

Method synchronized

3rdparty/libprocess/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 5

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected