A customized ALib thread-pool worker.
Definition at line 27 of file threadpool.hpp.
#include <threadpool.hpp>
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 |
| ThreadPool & | threadPool |
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 Thread * | Get (std::thread::id nativeID) |
| static Thread * | GetCurrent () |
| static Thread * | GetMain () |
| 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 character * | name |
| std::thread::id | nativeID |
| Runnable * | runnable |
| 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 character * | GetName () const |
| std::thread::id | GetNativeID () const |
| State | GetState () |
| bool | IsAlive () |
| virtual void | Join () |
| virtual void | SetName (const character *newName) |
| virtual void | Start () |
| 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.
| alib::MonoAllocator dxl::DXLPoolWorker::TMA |
A mono allocator. This is reset with every job execution.
Definition at line 29 of file threadpool.hpp.
| 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.
| dxl::DXLPoolWorker::DXLPoolWorker | ( | DXLThreadPool & | pool, |
| const alib::character * | pName ) |
Constructor
| pool | The pool we belong to. |
| pName | This worker's name. |
Definition at line 15 of file threadpool.cpp.
|
inlineoverridevirtual |
Attaches a pointer to ourselves to the Job.
| job | The job to prepare. |
Reimplemented from alib::threadmodel::PoolWorker.
Definition at line 44 of file threadpool.hpp.