diff options
Diffstat (limited to 'Master/Real-Time Systems/RTS_A8/src/Display.h')
| -rw-r--r-- | Master/Real-Time Systems/RTS_A8/src/Display.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Master/Real-Time Systems/RTS_A8/src/Display.h b/Master/Real-Time Systems/RTS_A8/src/Display.h new file mode 100644 index 0000000..dd3446a --- /dev/null +++ b/Master/Real-Time Systems/RTS_A8/src/Display.h @@ -0,0 +1,37 @@ +/* + * Display.h + * + * Created on: 30.11.2010 + * Author: istsveise + */ + +#ifndef DISPLAY_H_ +#define DISPLAY_H_ + +#include "ApplicationWindow.h" +#include "Task.h" + +extern pthread_mutex_t vehicleMutex; +extern const double PI; +extern const int WIN_WIDTH; +extern const int WIN_HEIGHT; +extern const int WIN_BPP; + +void displayFunc(); + +class Display : public Task { +public: + Display(int); + virtual ~Display(); + virtual void execute(); + friend void displayFunc(); + friend void* dispInit(void*); + static Display* getDisplay(); +private: + static Display* msDispPtr; + pthread_t mDispThread; + bool mStarted; + sem_t dispSem; +}; + +#endif /* DISPLAY_H_ */ |
