All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ThreadedTaskWorkerRunner.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "TaskWorker.h"
7 #include "IRunnable.h"
8 #include "ITaskWorkerRunner.h"
9 #include "Thread.h"
10 
11 namespace Eegeo
12 {
13  namespace Concurrency
14  {
15  namespace Tasks
16  {
18  {
19  public:
20  ThreadedTaskWorkerRunner(TaskWorker& taskWorker, IThreadService& threadService);
22  void RequestStop();
23  void Stop();
24  void Start();
25  bool IsRunning() const;
26 
27  private:
28  TaskWorker& m_taskWorker;
29  IRunnable* m_pRunnable;
30  Thread* m_pThread;
31  };
32  }
33  }
34 }