ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::threadmodel::ThreadPool::JobSyncer Struct Reference

Description:

Special synchronization job. Pushed with ThreadPool::Sync and DedicatedWorker::DeleteJobDeferred With the latter, the field JobToDelete will be given, otherwise this is nulled.

Definition at line 247 of file threadpool.inl.

Inheritance diagram for alib::threadmodel::ThreadPool::JobSyncer:
alib::threadmodel::Job

Public Field Index:

JobJobToDelete
 Optionally a job to be deleted.
Public Field Index: inherited from alib::threadmodel::Job
const std::type_info & ID

Public Method Index:

 JobSyncer (Job *job)
virtual size_t SizeOf () override
Public Method Index: inherited from alib::threadmodel::Job
 Job (const std::type_info &id)
virtual ~Job ()=default
 Protected destructor.
template<typename TJob>
TJob & Cast ()
virtual bool Do ()
template<typename TOther>
bool Is ()
template<typename TOther>
bool IsNull ()
virtual void PrepareDeferredDeletion ()

Field Details:

◆ JobToDelete

Job* alib::threadmodel::ThreadPool::JobSyncer::JobToDelete

Optionally a job to be deleted.

Definition at line 250 of file threadpool.inl.

Constructor(s) / Destructor Details:

◆ JobSyncer()

Constructor.

Parameters
jobThe job that is scheduled to be deleted.

Definition at line 254 of file threadpool.inl.

Method Details:

◆ SizeOf()

virtual size_t alib::threadmodel::ThreadPool::JobSyncer::SizeOf ( )
inlineoverridevirtual

Overrides the parent function as necessary.

Returns
The sizeof this derived type.

Reimplemented from alib::threadmodel::Job.

Definition at line 260 of file threadpool.inl.


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