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;
12// clang-format on
13
15public:
16 // MinecraftWorkerPool inner types define
17 enum class UseAsyncOrDiskPoolForLoading : int {
18 Async = 0,
19 Disk = 1,
20 };
21
22public:
23 // static functions
24 // NOLINTBEGIN
25#ifdef LL_PLAT_C
26 MCNAPI static void configureGamefaceThread();
27#endif
28
29 MCNAPI static void configureMainThread();
30
31 MCNAPI static void configureServerThread();
32
33 MCNAPI static void createSingletons();
34
35 MCNAPI static void destroySingletons();
36
37#ifdef LL_PLAT_C
38 MCNAPI static ::WorkerPool& getASYNCOrDISKWorkerPoolForLoading();
39#endif
40
41 MCNAPI static ::std::optional<::AllWorkerConfigurations> const getAllWorkerConfigurations();
42
43#ifdef LL_PLAT_C
44 MCNAPI static uint64 getAudioThreadMask();
45#endif
46
47 MCNAPI static void initializeDefaults();
48
49 MCNAPI static void loadWorkerConfigurations(uint highPowerCores, uint totalCores);
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& ASYNC();
56
57 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& CONNECTEDSTORAGE();
58
59 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& DISK();
60
61 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& GAMEFACE_LAYOUT();
62
63 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& INPUT();
64
65 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& LEVELDB();
66
67 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& LEVELDB_COMPACTION();
68
69 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& NETWORK();
70
71 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& RENDERING();
72
73 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& RENDERING_HELPERS();
74
75 MCNAPI static ::Bedrock::NonOwnerPointer<::WorkerPool>& WATCHDOG();
76 // NOLINTEND
77};
Definition MinecraftWorkerPool.h:14
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & NETWORK()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & INPUT()
static MCAPI void destroySingletons()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & ASYNC()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & LEVELDB()
static MCAPI ::std::optional<::AllWorkerConfigurations > const getAllWorkerConfigurations()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & GAMEFACE_LAYOUT()
static MCAPI void configureMainThread()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & RENDERING()
static MCAPI void initializeDefaults()
static MCAPI void configureServerThread()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & RENDERING_HELPERS()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & DISK()
static MCAPI void loadWorkerConfigurations(uint highPowerCores, uint totalCores)
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & CONNECTEDSTORAGE()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & WATCHDOG()
static MCAPI ::Bedrock::NonOwnerPointer<::WorkerPool > & LEVELDB_COMPACTION()
static MCAPI void createSingletons()
Definition WorkerPool.h:20
Definition AllWorkerConfigurations.h:5