MCPcopy Create free account
hub / github.com/cuberite/cuberite / EnqueueItem

Method EnqueueItem

src/OSSupport/Queue.h:58–63  ·  view source on GitHub ↗

Enqueues an item to the queue, may block if other threads are accessing the queue.

Source from the content-addressed store, hash-verified

56
57 /// Enqueues an item to the queue, may block if other threads are accessing the queue.
58 void EnqueueItem(ItemType a_Item)
59 {
60 cCSLock Lock(m_CS);
61 m_Contents.push_back(a_Item);
62 m_evtAdded.Set();
63 }
64
65
66 /// Enqueues an item in the queue if not already present (as determined by operator ==). Blocks other threads from accessing the queue.

Callers 2

QueueLoadChunkMethod · 0.80
QueueSavedMessageMethod · 0.80

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected