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

Description:

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

Definition at line 212 of file threadpool.inl.

Inheritance diagram for alib::threadmodel::ThreadPool::JobSyncer:
[legend]
Collaboration diagram for alib::threadmodel::ThreadPool::JobSyncer:
[legend]

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 215 of file threadpool.inl.

Constructor(s) / Destructor Details:

◆ JobSyncer()

Constructor.

Parameters
jobThe job that is scheduled to be deleted.

Definition at line 219 of file threadpool.inl.

Here is the call graph for this function:

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 225 of file threadpool.inl.

Here is the call graph for this function:

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