LeviLamina
Loading...
Searching...
No Matches
BackgroundWorker Class Reference
Inheritance diagram for BackgroundWorker:

Public Types

enum class  RunOneResult : int { NoTasks = 0 , TaskExecuted = 1 , Retry = 2 }
enum class  State : int { Initializing = 0 , Off = 1 , Running = 2 }

Public Member Functions

BackgroundWorkeroperator= (BackgroundWorker const &)
 BackgroundWorker (BackgroundWorker const &)
virtual bool isAsync () const
virtual bool canTaskRunAgain () const
MCAPI BackgroundWorker (::std::string_view name, ::Core::Profile::ThreadFrameType frameType, bool async, ::Bedrock::Threading::OSThreadPriority const &priority, ::std::optional< uint64 > coreAffinity, ::std::optional< int > idealCore, ::WorkerPool &workerPool)
MCAPI void _doNoWorkDelay ()
MCAPI bool _processNextTask (::RunTaskOptions const &options)
MCAPI::BackgroundWorker::RunOneResult _runOneTask (::RunTaskOptions const &options)
MCAPI ::std::shared_ptr<::BackgroundTaskBase_tryPop (::WorkerPool &pool)
MCAPI uint64 getApproximateTaskCount () const
MCAPI::RunTaskOptions getRunOptions ()
MCAPI::std::thread::id getThreadId () const
MCAPI bool isIdle () const
MCAPI bool processTaskSync (::RunTaskOptions const &options)
MCAPI void queue (::std::shared_ptr<::BackgroundTaskBase > task)
MCAPI void requestStop (bool wait)
MCAPI void resortPriorityQueue ()
MCAPI void start ()
MCAPI void wake ()
MCAPI void * $ctor (::std::string_view name, ::Core::Profile::ThreadFrameType frameType, bool async, ::Bedrock::Threading::OSThreadPriority const &priority, ::std::optional< uint64 > coreAffinity, ::std::optional< int > idealCore, ::WorkerPool &workerPool)
MCAPI void $dtor ()
MCAPI bool $isAsync () const
MCAPI bool $canTaskRunAgain () const

Static Public Member Functions

static MCAPI ::BackgroundWorker * getLocal ()
static MCAPI ::BackgroundWorker *& gLocalWorkerMappingSingleton ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::UntypedStorage< 1, 1 > mUnk588fa6
::ll::UntypedStorage< 4, 4 > mUnk710ade
::ll::UntypedStorage< 8, 16 > mUnk13d7dc
::ll::UntypedStorage< 4, 8 > mUnka1b2fe
::ll::UntypedStorage< 8, 32 > mUnk3a56b0
::ll::UntypedStorage< 1, 1 > mUnk4f46c0
::ll::UntypedStorage< 8, 16 > mUnkd929e4
::ll::UntypedStorage< 4, 4 > mUnka494ab
::ll::UntypedStorage< 4, 4 > mUnke7131f
::ll::UntypedStorage< 8, 160 > mUnk340fb7
::ll::UntypedStorage< 1, 1 > mUnkd41591
::ll::UntypedStorage< 8, 8 > mUnkb6dab1
::ll::UntypedStorage< 8, 16 > mUnk923ee5
::ll::UntypedStorage< 8, 8 > mUnkf38404
::ll::UntypedStorage< 8, 8 > mUnkaffb93
::ll::UntypedStorage< 8, 360 > mUnk649664

Constructor & Destructor Documentation

◆ BackgroundWorker()

MCAPI BackgroundWorker::BackgroundWorker ( ::std::string_view name,
::Core::Profile::ThreadFrameType frameType,
bool async,
::Bedrock::Threading::OSThreadPriority const & priority,
::std::optional< uint64 > coreAffinity,
::std::optional< int > idealCore,
::WorkerPool & workerPool )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ isAsync()

virtual bool BackgroundWorker::isAsync ( ) const
virtual

Implements ITaskExecutionContext.

◆ canTaskRunAgain()

virtual bool BackgroundWorker::canTaskRunAgain ( ) const
virtual

Implements ITaskExecutionContext.

◆ _doNoWorkDelay()

MCAPI void BackgroundWorker::_doNoWorkDelay ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _processNextTask()

MCAPI bool BackgroundWorker::_processNextTask ( ::RunTaskOptions const & options)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _runOneTask()

MCAPI::BackgroundWorker::RunOneResult BackgroundWorker::_runOneTask ( ::RunTaskOptions const & options)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _tryPop()

MCAPI ::std::shared_ptr<::BackgroundTaskBase > BackgroundWorker::_tryPop ( ::WorkerPool & pool)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getApproximateTaskCount()

MCAPI uint64 BackgroundWorker::getApproximateTaskCount ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getRunOptions()

MCAPI::RunTaskOptions BackgroundWorker::getRunOptions ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getThreadId()

MCAPI::std::thread::id BackgroundWorker::getThreadId ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isIdle()

MCAPI bool BackgroundWorker::isIdle ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ processTaskSync()

MCAPI bool BackgroundWorker::processTaskSync ( ::RunTaskOptions const & options)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ queue()

MCAPI void BackgroundWorker::queue ( ::std::shared_ptr<::BackgroundTaskBase > task)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ requestStop()

MCAPI void BackgroundWorker::requestStop ( bool wait)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ resortPriorityQueue()

MCAPI void BackgroundWorker::resortPriorityQueue ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ start()

MCAPI void BackgroundWorker::start ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ wake()

MCAPI void BackgroundWorker::wake ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getLocal()

MCAPI ::BackgroundWorker * BackgroundWorker::getLocal ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ gLocalWorkerMappingSingleton()

MCAPI ::BackgroundWorker *& BackgroundWorker::gLocalWorkerMappingSingleton ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * BackgroundWorker::$ctor ( ::std::string_view name,
::Core::Profile::ThreadFrameType frameType,
bool async,
::Bedrock::Threading::OSThreadPriority const & priority,
::std::optional< uint64 > coreAffinity,
::std::optional< int > idealCore,
::WorkerPool & workerPool )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void BackgroundWorker::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isAsync()

MCAPI bool BackgroundWorker::$isAsync ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canTaskRunAgain()

MCAPI bool BackgroundWorker::$canTaskRunAgain ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** BackgroundWorker::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: