ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
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 236 of file threadpool.hpp.

#include <threadpool.hpp>

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

Public Field Index:

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

Public Method Index:

 JobSyncer (Job *job)
 
virtual size_t SizeOf () override
 
- Public Method Index: inherited from 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* JobToDelete

Optionally a job to be deleted.

Definition at line 239 of file threadpool.hpp.

Constructor(s) / Destructor Details:

◆ JobSyncer()

JobSyncer ( Job * job)
inline

Constructor.

Parameters
jobThe job that is scheduled to be deleted.

Definition at line 243 of file threadpool.hpp.

Method Details:

◆ SizeOf()

virtual size_t SizeOf ( )
inlineoverridevirtual

Overrides the parent function as necessary.

Returns
The sizeof this derived type.

Reimplemented from Job.

Definition at line 249 of file threadpool.hpp.

Here is the call graph for this function:

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