Signapse
src
SchedulableLink.h
Go to the documentation of this file.
1
#ifndef SIGNAPSE_SCHEDULABLESCENELINKER_H
2
#define SIGNAPSE_SCHEDULABLESCENELINKER_H
3
4
#include <thread>
5
#include <chrono>
6
#include <ctime>
7
8
#include "
PipelineLink.h
"
9
#include "
BlockingQueue.h
"
10
11
17
class
SchedulableLink
:
public
PipelineLink
{
18
public
:
19
void
NextScene
(
Scene
s);
20
virtual
Scene
ProcessScene
(
Scene
s) = 0;
21
void
Start
();
22
void
Stop
();
23
bool
Available
();
24
protected
:
25
void
Enqueue
(
Scene
s);
26
void
Run
();
27
BlockingQueue<Scene>
scheduleQueue
;
28
bool
isOn
=
true
;
29
std::thread
scheduleWorker
;
30
};
31
32
33
#endif
//SIGNAPSE_SCHEDULABLESCENELINKER_H
BlockingQueue.h
PipelineLink.h
BlockingQueue< Scene >
PipelineLink
Definition:
PipelineLink.h:10
SchedulableLink
Definition:
SchedulableLink.h:17
SchedulableLink::Enqueue
void Enqueue(Scene s)
Definition:
SchedulableLink.cpp:21
SchedulableLink::NextScene
void NextScene(Scene s)
Definition:
SchedulableLink.cpp:48
SchedulableLink::Run
void Run()
Definition:
SchedulableLink.cpp:8
SchedulableLink::ProcessScene
virtual Scene ProcessScene(Scene s)=0
SchedulableLink::Stop
void Stop()
Definition:
SchedulableLink.cpp:40
SchedulableLink::scheduleWorker
std::thread scheduleWorker
Definition:
SchedulableLink.h:29
SchedulableLink::Start
void Start()
Definition:
SchedulableLink.cpp:34
SchedulableLink::Available
bool Available()
Definition:
SchedulableLink.cpp:27
SchedulableLink::isOn
bool isOn
Definition:
SchedulableLink.h:28
SchedulableLink::scheduleQueue
BlockingQueue< Scene > scheduleQueue
Definition:
SchedulableLink.h:27
Scene
Struct Scene.
Definition:
Scene.h:36
Generated by
1.9.3