Mercurial > hg > beaglert
comparison projects/d-box/prio.h @ 0:8a575ba3ab52
Initial commit.
author | andrewm |
---|---|
date | Fri, 31 Oct 2014 19:10:17 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8a575ba3ab52 |
---|---|
1 /* | |
2 * prio.h | |
3 * | |
4 * Created on: May 14, 2014 | |
5 * Author: Victor Zappi | |
6 */ | |
7 | |
8 #ifndef PRIO_H_ | |
9 #define PRIO_H_ | |
10 | |
11 | |
12 #include <pthread.h> | |
13 #include <sched.h> | |
14 #include <iostream> | |
15 | |
16 //----------------------------------------------------------------------------------------------------------- | |
17 // set maximum real-time priority to this thread | |
18 //----------------------------------------------------------------------------------------------------------- | |
19 void set_realtime_priority(int order); | |
20 //----------------------------------------------------------------------------------------------------------- | |
21 | |
22 #endif /* PRIO_H_ */ |