All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IWorkPool.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "WorkItem.h"
6 #include "TaskWorkPoolState.h"
7 
8 namespace Eegeo
9 {
10  namespace Concurrency
11  {
12  namespace Tasks
13  {
14  class IWorkPool
15  {
16  public:
17  virtual ~IWorkPool() { };
18  virtual void Start() = 0;
19  virtual void Stop() = 0;
20  virtual void Shutdown() = 0;
21  virtual void QueueWork(WorkItem* workItem) = 0;
22  virtual TaskWorkPoolState::Values GetState() const = 0;
23  virtual void Flush() = 0;
24  };
25  }
26  }
27 }
28