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

Method enqueue

src/run_queue.hpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void enqueue(ProcessBase* process)
77 {
78 synchronized (mutex) {
79 processes.push_back(process);
80 }
81 epoch.fetch_add(1);
82 semaphore.signal();
83 }
84
85 // Precondition: `wait` must get called before `dequeue`!
86 ProcessBase* dequeue()

Callers

nothing calls this directly

Calls 1

signalMethod · 0.45

Tested by

no test coverage detected