From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- Master/Real-Time Systems/RTS_A8/src/Display.h | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Master/Real-Time Systems/RTS_A8/src/Display.h (limited to 'Master/Real-Time Systems/RTS_A8/src/Display.h') 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_ */ -- cgit v1.2.3