LeviLamina
Loading...
Searching...
No Matches
MinecraftWorkerPool.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class WorkerPool;
11// clang-format on
12
14public:
15 // MinecraftWorkerPool inner types define
16 enum class CoreConfigFlavor : int {
17 LegacyCores = 0,
18 ClientRenderServerCores = 1,
19 };
20
21 enum class UseAsyncOrDiskPoolForLoading : int {
22 Async = 0,
23 Disk = 1,
24 };
25
26public:
27 // static functions
28 // NOLINTBEGIN
29 MCAPI static void configureMainThread();
30
31 MCAPI static void createSingletons();
32
33 MCAPI static void destroySingletons();
34
35 MCAPI static void loadWorkerConfigurations(uint highPowerCores, uint totalCores);
36 // NOLINTEND
37
38public:
39 // static variables
40 // NOLINTBEGIN
41 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& ASYNC();
42
43 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& CONNECTEDSTORAGE();
44
45 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& DISK();
46
47 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& GAMEFACE_LAYOUT();
48
49 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& INPUT();
50
51 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& LEVELDB();
52
53 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& LEVELDB_COMPACTION();
54
55 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& NETWORK();
56
57 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& PYTHONRUNTIME();
58
59 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& RENDERING();
60
61 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& RENDERING_HELPERS();
62
63 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& VR();
64
65 MCAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& WATCHDOG();
66 // NOLINTEND
67};
Definition MinecraftWorkerPool.h:13
Definition WorkerPool.h:19