Doxygen XLinks
by
V: 2511R0
Website: doxygen
Loading...
Searching...
No Matches
dxl::DXLPoolWorker Struct Reference

Description:

A customized ALib thread-pool worker.

Definition at line 27 of file threadpool.hpp.

#include <threadpool.hpp>

Inheritance diagram for dxl::DXLPoolWorker:
alib::threadmodel::PoolWorker alib::threads::Thread alib::threads::Runnable

Public Field Index:

MappedFile InputFile
 A read buffer. This is never shrunk but growing each time a larger file is loaded.
alib::MonoAllocator TMA
 A mono allocator. This is reset with every job execution.
alib::AString WriteBuffer
 A write buffer. This is never shrunk but growing each time a larger file is written.
Public Field Index: inherited from alib::threadmodel::PoolWorker
String64 nameBuffer
ThreadPoolthreadPool

Public Method Index:

 DXLPoolWorker (DXLThreadPool &pool, const alib::character *pName)
virtual void PrepareJob (alib::threadmodel::Job *job) override
Public Method Index: inherited from alib::threadmodel::PoolWorker
 PoolWorker (ThreadPool &pThreadPool, const character *threadName)
void Run () override

Additional Inherited Members

Protected Type Index: inherited from alib::threads::Thread
enum  State
Protected Static Method Index: inherited from alib::threads::Thread
static ThreadGet (std::thread::id nativeID)
static ThreadGetCurrent ()
static ThreadGetMain ()
static void Sleep (const Ticks::Duration &duration)
static void Sleep (const Ticks::Duration::TDuration &duration)
static void SleepMicros (int64_t microseconds)
static void SleepMillis (int milliseconds)
static void SleepNanos (int64_t nanoseconds)
static void SleepUntil (const Ticks &time)
static void YieldToSystem ()
Protected Field Index: inherited from alib::threads::Thread
std::thread * c11Thread
ThreadID id
const charactername
std::thread::id nativeID
Runnablerunnable
State state
Protected Method Index: inherited from alib::threads::Thread
void destruct ()
 Thread (const character *pName=A_CHAR(""))
 Thread (const Thread &)=delete
 Thread (Runnable *target, const character *pName=A_CHAR(""))
ThreadID GetID () const
virtual const characterGetName () const
std::thread::id GetNativeID () const
State GetState ()
bool IsAlive ()
virtual void Join ()
virtual void SetName (const character *newName)
virtual void Start ()

Field Details:

◆ InputFile

MappedFile dxl::DXLPoolWorker::InputFile

A read buffer. This is never shrunk but growing each time a larger file is loaded.

Definition at line 32 of file threadpool.hpp.

◆ TMA

alib::MonoAllocator dxl::DXLPoolWorker::TMA

A mono allocator. This is reset with every job execution.

Definition at line 29 of file threadpool.hpp.

◆ WriteBuffer

alib::AString dxl::DXLPoolWorker::WriteBuffer

A write buffer. This is never shrunk but growing each time a larger file is written.

A buffer

Definition at line 35 of file threadpool.hpp.

Constructor(s) / Destructor Details:

◆ DXLPoolWorker()

dxl::DXLPoolWorker::DXLPoolWorker ( DXLThreadPool & pool,
const alib::character * pName )

Constructor

Parameters
poolThe pool we belong to.
pNameThis worker's name.

Definition at line 15 of file threadpool.cpp.

Method Details:

◆ PrepareJob()

virtual void dxl::DXLPoolWorker::PrepareJob ( alib::threadmodel::Job * job)
inlineoverridevirtual

Attaches a pointer to ourselves to the Job.

Parameters
jobThe job to prepare.

Reimplemented from alib::threadmodel::PoolWorker.

Definition at line 44 of file threadpool.hpp.


The documentation for this struct was generated from the following files: