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

Method enqueue

src/event_queue.hpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111#ifndef LOCK_FREE_EVENT_QUEUE
112 bool enqueue(Event* event)
113 {
114 synchronized (mutex) {
115 if (comissioned) {
116 events.push_back(event);
117 return true;
118 }
119 }
120
121 return false;
122 }
123
124 Event* dequeue()
125 {

Callers 1

enqueueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected