-
Notifications
You must be signed in to change notification settings - Fork 29
/
TTMan.h
31 lines (25 loc) · 852 Bytes
/
TTMan.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef TTMan_h
#define TTMan_h
/**
* This file is the double threaded (TT) version of man,
* which runs a thread for both the enactor and the image transcriber
*/
#include "Man.h"
#include "ThreadedMotionEnactor.h"
#include "ThreadedImageTranscriber.h"
class TTMan : public Man {
public:
TTMan(boost::shared_ptr<Sensors> _sensors,
boost::shared_ptr<Transcriber> _transcriber,
boost::shared_ptr<ThreadedImageTranscriber> _imageTranscriber,
boost::shared_ptr<ThreadedMotionEnactor> _enactor,
boost::shared_ptr<Synchro> synchro,
boost::shared_ptr<Lights> _lights);
~TTMan();
void startSubThreads();
void stopSubThreads();
private:
boost::shared_ptr<ThreadedImageTranscriber> threadedImageTranscriber;
boost::shared_ptr<ThreadedMotionEnactor> threadedEnactor;
};
#endif