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
7template <typename T0>
8class MPMCQueue {
9public:
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.
13
14public:
17 bool enqueue(T0 const& element) {
18 return mQueue.as<::moodycamel::ConcurrentQueue<T0, ::Bedrock::Memory::MoodyCamelBedrockMemoryTraits>>().enqueue(
19 element
20 );
21 }
22};
Definition MPMCQueue.h:8
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
Definition Alias.h:14