LeviLamina
Loading...
Searching...
No Matches
MPMCQueue.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
#include "mc/deps/core/memory/MoodyCamelBedrockMemoryTraits.h"
6
7
template
<
typename
T0>
8
class
MPMCQueue
{
9
public
:
10
// Held untyped so that MPMCQueue<T> stays usable with an incomplete T, which several headers
11
// rely on. The 616 bytes and 8-byte alignment come from the moodycamel queue it wraps.
12
::ll::UntypedStorage<8, 616>
mQueue;
13
14
public
:
17
bool
enqueue
(T0
const
& element) {
18
return
mQueue.as<::moodycamel::ConcurrentQueue<T0, ::Bedrock::Memory::MoodyCamelBedrockMemoryTraits>>().
enqueue
(
19
element
20
);
21
}
22
};
MPMCQueue
Definition
MPMCQueue.h:8
MPMCQueue::enqueue
bool enqueue(T0 const &element)
Restored: the game inlines moodycamel's producer lookup into this, which is why the call site reaches...
Definition
MPMCQueue.h:17
ll::UntypedStorage
Definition
Alias.h:14
src
mc
deps
core
threading
MPMCQueue.h
Generated on
for LeviLamina by
1.16.1