57 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::Scheduler>> mScheduler;
58 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::WorkerPool>> mWorkers;
59 ::ll::TypedStorage<8, 32, ::std::string> mName;
60 ::ll::TypedStorage<1, 1, bool> mCheckOwnerThread;
61 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mLock;
62 ::ll::TypedStorage<4, 4, ::std::atomic<::TaskGroupState>> mState;
63 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BackgroundTaskBase>> mTasks;
64 ::ll::TypedStorage<8, 8, uint64> mTaskCount;
65 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BackgroundTaskBase>> mEnumCurr;
66 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BackgroundTaskBase>> mEnumNext;
67 ::ll::TypedStorage<8, 16, ::Bedrock::Threading::Async<void>> mResumeTaskHandle;
68 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mResumeTaskMutex;
79 virtual ::Bedrock::Threading::Async<void> queue_DEPRECATED(
82 ::std::function<
void()>&& callback
86 virtual ::Bedrock::Threading::Async<void> queueSync_DEPRECATED(
95 virtual void taskRegister(::std::shared_ptr<::BackgroundTaskBase> task) ;
98 virtual void requeueTask(::std::shared_ptr<::BackgroundTaskBase> task,
bool queueImmediate) ;
101 virtual ::TaskGroupState getState()
const ;
104 virtual void processCoroutines() ;
107 virtual void taskComplete(::gsl::not_null<::BackgroundTaskBase*> task) ;
110 virtual bool _workerPoolIsAsync()
const;
120 MCAPI
void _forAllTasks(
122 ::std::function<
void(::std::shared_ptr<::BackgroundTaskBase>
const&)> callback
125 MCAPI
void _queueInternal(::std::shared_ptr<::BackgroundTaskBase> bgtask);
127 MCAPI
void flush(::std::function<
void()> waitFn);
129 MCAPI
bool isEmpty()
const;
131 MCAPI
void sync_DEPRECATED_ASK_TOMMO(::std::function<
void()> waitFn);
137 MCAPI static ::IBackgroundTaskOwner* getCurrentTaskGroup();
155 MCAPI ::Bedrock::Threading::Async<void> $queue_DEPRECATED(
158 ::std::function<
void()>&& callback
161 MCAPI ::Bedrock::Threading::Async<void>
164 MCAPI
void $taskRegister(::std::shared_ptr<::BackgroundTaskBase> task);
166 MCAPI
void $requeueTask(::std::shared_ptr<::BackgroundTaskBase> task,
bool queueImmediate);
168 MCFOLD ::TaskGroupState $getState()
const;
170 MCAPI
void $processCoroutines();
172 MCAPI
void $taskComplete(::gsl::not_null<::BackgroundTaskBase*> task);
174 MCAPI
bool $_workerPoolIsAsync()
const;
Definition WorldPacksHistoryFile.h:10