Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WorkerPool Class Reference
Inheritance diagram for WorkerPool:

Public Types

using PendingJobQueue

Public Member Functions

MCAPI void queue (::std::shared_ptr<::BackgroundTaskBase > task, bool queueImmediate)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void _registerPool (::WorkerPool &pool)
static MCAPI ::brstd::flat_set<::WorkerPool *, ::std::less<::WorkerPool * >, ::std::vector<::WorkerPool * > > & sAllPools ()
static MCAPI ::std::mutex & sAllPoolsMutex ()
static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 1, 1, bool const > mAsync
::ll::TypedStorage< 8, 24, ::std::vector<::std::unique_ptr<::BackgroundWorker > > > mWorkers
::ll::TypedStorage< 8, 32, ::std::string > mName
::ll::TypedStorage< 8, 64, ::BackgroundWorkerPerfInfo > mPerfInfo
::ll::TypedStorage< 8, 8, ::std::chrono::steady_clock::time_point > mLastPerfInfoUpdate
::ll::TypedStorage< 8, 8, ::Scheduler * > mOwnerScheduler
::ll::TypedStorage< 8, 80, ::std::mutex > mSuspendLock
::ll::TypedStorage< 4, 4, ::Bedrock::Threading::OSThreadPriority > mPoolPriority
::ll::TypedStorage< 4, 4, float > mMinBacklogDurationSeconds
::ll::TypedStorage< 8, 24, ::SpinLockImpl > mPendingWorkQueueLock
::ll::TypedStorage< 8, 24, ::MovePriorityQueue<::std::shared_ptr<::BackgroundTaskBase >, ::BackgroundTaskBase::PendingComparer > > mPendingWorkQueue
::ll::TypedStorage< 8, 8, ::std::chrono::steady_clock::time_point > mNextPendingWorkTime
::ll::TypedStorage< 8, 360, ::BackgroundTaskQueue > mTaskQueue
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Typedef Documentation

◆ PendingJobQueue

using WorkerPool::PendingJobQueue

Member Function Documentation

◆ queue()

MCAPI void WorkerPool::queue ( ::std::shared_ptr<::BackgroundTaskBase > task,
bool queueImmediate )
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.

◆ _registerPool()

MCAPI void WorkerPool::_registerPool ( ::WorkerPool & pool)
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.

◆ sAllPools()

MCAPI ::brstd::flat_set<::WorkerPool *, ::std::less<::WorkerPool * >, ::std::vector<::WorkerPool * > > & WorkerPool::sAllPools ( )
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.

◆ sAllPoolsMutex()

MCAPI ::std::mutex & WorkerPool::sAllPoolsMutex ( )
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.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
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: