3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/container/MovePriorityQueue.h"
7#include "mc/deps/core/threading/BackgroundTaskBase.h"
8#include "mc/deps/core/threading/ITaskExecutionContext.h"
9#include "mc/deps/core/threading/SPSCQueue.h"
22 enum class RunOneResult :
int {
28 enum class State :
int {
56 BackgroundWorker& operator=(BackgroundWorker
const&);
57 BackgroundWorker(BackgroundWorker
const&);
63 virtual ~BackgroundWorker() ;
65 virtual bool isAsync()
const ;
67 virtual bool canTaskRunAgain()
const ;
77 ::std::optional<uint64> coreAffinity,
78 ::std::optional<int> idealCore,
80 bool suppressProfiling
89 MCNAPI
void queue(::std::shared_ptr<::BackgroundTaskBase> task);
107 ::std::optional<uint64> coreAffinity,
108 ::std::optional<int> idealCore,
110 bool suppressProfiling
Definition BackgroundTaskBase.h:13
MCAPI bool $isAsync() const
MCAPI::BackgroundWorker::RunOneResult _runOneTask(::RunTaskOptions const &options)
MCAPI bool $canTaskRunAgain() const
static MCAPI ::BackgroundWorker *& gLocalWorkerMappingSingleton()
MCAPI void queue(::std::shared_ptr<::BackgroundTaskBase > task)
MCAPI BackgroundWorker(::std::string name, bool async, ::Bedrock::Threading::OSThreadPriority const &priority, ::std::optional< uint64 > coreAffinity, ::std::optional< int > idealCore, ::WorkerPool &workerPool, bool suppressProfiling)
MCAPI bool _processNextTask(::RunTaskOptions const &options)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::std::string name, bool async, ::Bedrock::Threading::OSThreadPriority const &priority, ::std::optional< uint64 > coreAffinity, ::std::optional< int > idealCore, ::WorkerPool &workerPool, bool suppressProfiling)
MCAPI void _doNoWorkDelay()
Definition OSThreadPriority.h:7
Definition ITaskExecutionContext.h:5
Definition WorkerPool.h:19
Definition RunTaskOptions.h:5