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
9// auto generated forward declare list
10// clang-format off
11class Scheduler;
12class WorkerPool;
13// clang-format on
14
15namespace Bedrock::Threading {
16
17class EnableQueueForMainThread : public ::Bedrock::Threading::EnableQueueForThread {
18public:
19 // prevent constructor by default
20 EnableQueueForMainThread();
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ~EnableQueueForMainThread() /*override*/;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI explicit EnableQueueForMainThread(::std::string name);
32
33 MCAPI EnableQueueForMainThread(::WorkerPool&, ::Scheduler&, ::std::string);
34
35#ifdef LL_PLAT_C
36 MCAPI ::Bedrock::Threading::Async<void> queueForMainThread(::std::function<void()>&& callback);
37
38 MCAPI ::Bedrock::Threading::Async<void> queueForMainThreadAutoRequeue(::std::function<bool()>&& callback);
39#endif
40 // NOLINTEND
41
42public:
43 // constructor thunks
44 // NOLINTBEGIN
45 MCAPI void* $ctor(::std::string name);
46
47 MCAPI void* $ctor(::WorkerPool&, ::Scheduler&, ::std::string);
48 // NOLINTEND
49
50public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCAPI void $dtor();
54 // NOLINTEND
55
56public:
57 // vftables
58 // NOLINTBEGIN
59 MCNAPI static void** $vftable();
60 // NOLINTEND
61};
62
63} // namespace Bedrock::Threading
Definition EnableQueueForThread.h:15
Definition Scheduler.h:14
Definition WorkerPool.h:19