LeviLamina
Loading...
Searching...
No Matches
InternalTaskGroup.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/IAsyncResult.h"
7#include "mc/deps/core/threading/IBackgroundTaskOwner.h"
8#include "mc/deps/core/threading/TaskGroupState.h"
9#include "mc/deps/core/threading/TaskStartInfoEx.h"
10#include "mc/platform/brstd/move_only_function.h"
11
12// auto generated forward declare list
13// clang-format off
15class TaskResult;
16// clang-format on
17
19public:
20 // virtual functions
21 // NOLINTBEGIN
22 // vIndex: 1
23 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> queue(
24 ::TaskStartInfoEx<void> const& startInfo,
26 ::std::function<void()>&& callback
27 ) /*override*/;
28
29 // vIndex: 2
30 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> queueSync(
31 ::TaskStartInfoEx<void> const& startInfo,
33 ) /*override*/;
34
35 // vIndex: 3
36 virtual void taskRegister(::std::shared_ptr<::BackgroundTaskBase>) /*override*/;
37
38 // vIndex: 4
39 virtual void requeueTask(::std::shared_ptr<::BackgroundTaskBase>, bool) /*override*/;
40
41 // vIndex: 5
42 virtual ::TaskGroupState getState() const /*override*/;
43
44 // vIndex: 6
45 virtual void processCoroutines() /*override*/;
46
47 // vIndex: 7
48 virtual void taskComplete(::gsl::not_null<::BackgroundTaskBase*> task) /*override*/;
49
50 // vIndex: 0
51 virtual ~InternalTaskGroup() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCFOLD ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>> $queue(
64 ::TaskStartInfoEx<void> const& startInfo,
66 ::std::function<void()>&& callback
67 );
68
69 MCFOLD ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<void>>
70 $queueSync(::TaskStartInfoEx<void> const& startInfo, ::brstd::move_only_function<::TaskResult()>&& task);
71
72 MCFOLD void $taskRegister(::std::shared_ptr<::BackgroundTaskBase>);
73
74 MCFOLD void $requeueTask(::std::shared_ptr<::BackgroundTaskBase>, bool);
75
76 MCFOLD ::TaskGroupState $getState() const;
77
78 MCFOLD void $processCoroutines();
79
80 MCFOLD void $taskComplete(::gsl::not_null<::BackgroundTaskBase*> task);
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition BackgroundTaskBase.h:13
Definition IBackgroundTaskOwner.h:17
Definition InternalTaskGroup.h:18
Definition TaskResult.h:8
Definition move_only_function.h:9
Definition TaskStartInfoEx.h:8