Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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