LeviLamina
Loading...
Searching...
No Matches
EnableFIFOQueueForMainThread.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/minecraft/threading/EnableQueueForMainThread.h"
7
#include "mc/platform/threading/Mutex.h"
8
9
namespace
Bedrock::Threading {
10
11
class
EnableFIFOQueueForMainThread
:
public
::Bedrock::Threading::EnableQueueForMainThread
{
12
public
:
13
// EnableFIFOQueueForMainThread inner types define
14
using
Task = ::std::function<void()>;
15
16
public
:
17
// member variables
18
// NOLINTBEGIN
19
::ll::TypedStorage<8, 40, ::std::deque<::std::function<void()>>> mQueue;
20
::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mQueueMutex;
21
// NOLINTEND
22
23
public
:
24
// virtual functions
25
// NOLINTBEGIN
26
virtual
~EnableFIFOQueueForMainThread
()
/*override*/
=
default
;
27
// NOLINTEND
28
29
public
:
30
// member functions
31
// NOLINTBEGIN
32
MCAPI_C
void
_runNextTask();
33
34
MCAPI_C
void
queueForMainThreadFIFO(::std::function<
void
()>&& task);
35
// NOLINTEND
36
37
public
:
38
// vftables
39
// NOLINTBEGIN
40
MCNAPI
static
void
**
$vftable
();
41
// NOLINTEND
42
};
43
44
}
// namespace Bedrock::Threading
Bedrock::Threading::EnableFIFOQueueForMainThread
Definition
EnableFIFOQueueForMainThread.h:11
Bedrock::Threading::EnableFIFOQueueForMainThread::$vftable
static MCAPI void ** $vftable()
Bedrock::Threading::EnableQueueForMainThread
Definition
EnableQueueForMainThread.h:17
src
mc
deps
core
minecraft
threading
EnableFIFOQueueForMainThread.h
Generated on
for LeviLamina by
1.16.1