LeviLamina
Loading...
Searching...
No Matches
EnableQueueForMainThread.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7#include "mc/deps/core/threading/EnableQueueForThread.h"
8
9namespace Bedrock::Threading {
10
11class EnableQueueForMainThread : public ::Bedrock::Threading::EnableQueueForThread {
12public:
13 // prevent constructor by default
14 EnableQueueForMainThread();
15
16public:
17 // member functions
18 // NOLINTBEGIN
19 MCAPI explicit EnableQueueForMainThread(::std::string name);
20
21 MCAPI void flushMainThreadTasks();
22
23 MCAPI ::Bedrock::Threading::Async<void> queueForMainThread(::std::function<void()>&& callback);
24
25#ifdef LL_PLAT_C
26 MCAPI ::Bedrock::Threading::Async<void> queueForMainThreadAutoRequeue(::std::function<bool()>&& callback);
27#endif
28 // NOLINTEND
29
30public:
31 // constructor thunks
32 // NOLINTBEGIN
33 MCAPI void* $ctor(::std::string name);
34 // NOLINTEND
35
36public:
37 // vftables
38 // NOLINTBEGIN
39 MCNAPI static void** $vftable();
40 // NOLINTEND
41};
42
43} // namespace Bedrock::Threading
Definition EnableQueueForThread.h:17