TaskQueue.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 
6 #include "Task.h"
7 #include <memory>
8 
9 //--------------------------------------------------------------------------------------------------
12 //--------------------------------------------------------------------------------------------------
13 class TaskQueue
14 {
15 public:
16  virtual std::unique_ptr<Task> GetNextTask() = 0;
17  virtual void ReportTaskComplete() = 0;
18 };
virtual void ReportTaskComplete()=0
Interface through which TaskProcessors retrieve Tasks from the TaskRunner.
Definition: TaskQueue.h:13
virtual std::unique_ptr< Task > GetNextTask()=0