MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / push_front

Method push_front

extensions/olcPGEX_Network.h:251–258  ·  view source on GitHub ↗

Adds an item to front of Queue

Source from the content-addressed store, hash-verified

249
250 // Adds an item to front of Queue
251 void push_front(const T& item)
252 {
253 std::scoped_lock lock(muxQueue);
254 deqQueue.emplace_front(std::move(item));
255
256 std::unique_lock<std::mutex> ul(muxBlocking);
257 cvBlocking.notify_one();
258 }
259
260 // Returns true if Queue has no items
261 bool empty()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected