All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Task.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_UTIL_THREADPOOL_TASK_H_
23 #define _BLAZE_UTIL_THREADPOOL_TASK_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
30 #include <blaze/util/NonCopyable.h>
31 
32 
33 namespace blaze {
34 
35 namespace threadpool {
36 
37 //=================================================================================================
38 //
39 // CLASS DEFINITION
40 //
41 //=================================================================================================
42 
43 //*************************************************************************************************
49 class Task : private NonCopyable
50 {
51  public:
52  //**Constructor*********************************************************************************
53  // No explicitly declared constructor.
54  //**********************************************************************************************
55 
56  //**Destructor**********************************************************************************
59  virtual ~Task();
61  //**********************************************************************************************
62 
63  //**Execution functions*************************************************************************
66  virtual void run() = 0;
68  //**********************************************************************************************
69 };
70 //*************************************************************************************************
71 
72 } // namespace threadpool
73 
74 } // namespace blaze
75 
76 #endif