Aether
SDL2 based UI Framework for NX
ThreadPool.Job.hpp
1 #ifndef AETHER_THREADPOOL_JOB_HPP
2 #define AETHER_THREADPOOL_JOB_HPP
3 
4 #include "Aether/ThreadPool.hpp"
5 
6 namespace Aether {
12  private:
16  bool completed;
17 
18  protected:
25  virtual void work() = 0;
26 
27  public:
31  Job();
32 
39  bool run();
40 
44  ~Job();
45  };
46 };
47 
48 #endif
virtual void work()=0
The work to perform. This must be defined by derived classes to actually perform the work...
bool run()
Runs the job. Does nothing if the job has already been completed.
Base namespace for all Aether related classes and functions.
Job()
Constructs a new default Job object.
Abstract class representing a job for the ThreadPool. It is designed to be inherited to define the jo...
Definition: ThreadPool.Job.hpp:11
~Job()
Destroys the Job object.