Trippin Cyril
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
trippingcyril::thread::Job Class Referenceabstract

Job base class With main thread we really just mean the thread the Module that the JobThread we are pushed to is running on. More...

#include <JobThread.h>

Inheritance diagram for trippingcyril::thread::Job:
[legend]
Collaboration diagram for trippingcyril::thread::Job:
[legend]

Public Member Functions

 Job ()
 
virtual ~Job ()
 
virtual bool preExecuteMain ()=0
 
virtual void execute ()=0
 
virtual void postExecuteMain ()=0
 
- Public Member Functions inherited from trippingcyril::ShouldDelete
virtual bool shouldDelete () const
 

Public Attributes

bool runPostHook: 1
 

Detailed Description

Job base class With main thread we really just mean the thread the Module that the JobThread we are pushed to is running on.

Constructor & Destructor Documentation

trippingcyril::thread::Job::Job ( )
inline
virtual trippingcyril::thread::Job::~Job ( )
inlinevirtual

Deconstructor

Member Function Documentation

virtual void trippingcyril::thread::Job::execute ( )
pure virtual

This method will run on the JobThread

virtual void trippingcyril::thread::Job::postExecuteMain ( )
pure virtual

This method will run on the 'main' thread after execution of execute()

virtual bool trippingcyril::thread::Job::preExecuteMain ( )
pure virtual

This method will be executed on the 'main' thread before execution

Returns
True if it should actually run

Member Data Documentation

bool trippingcyril::thread::Job::runPostHook

Set this to false if you don't want postExecuteMain() to run, true by default

Note
This can in theory improve performance as you won't cause unnecessary activity on the main thread.

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