summaryrefslogtreecommitdiffstats
path: root/Master/Real-Time Systems/RTS_A8/src/Display.h
blob: dd3446acf68863df6ce31af3c1ec52306bfa3439 (plain)
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
32
33
34
35
36
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_ */