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>
Public Field Index: | |
Job * | JobToDelete |
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 () |
Job* JobToDelete |
Optionally a job to be deleted.
Definition at line 239 of file threadpool.hpp.
Constructor.
job | The job that is scheduled to be deleted. |
Definition at line 243 of file threadpool.hpp.
|
inlineoverridevirtual |
Overrides the parent function as necessary.
Reimplemented from Job.
Definition at line 249 of file threadpool.hpp.