Mercurial > hg > beaglert
annotate examples/d-box/prio.h @ 377:a430a16d2c02 prerelease
Updated scripts so that the Bela folder on the bbb is ~/Bela. Note: BeagleRT_startup.sh is still the same (because the reference to it needs to be changed in /etc/init.d/ ....
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sat, 11 Jun 2016 01:54:43 +0100 |
parents | dbeed520b014 |
children |
rev | line source |
---|---|
andrewm@0 | 1 /* |
andrewm@0 | 2 * prio.h |
andrewm@0 | 3 * |
andrewm@0 | 4 * Created on: May 14, 2014 |
andrewm@0 | 5 * Author: Victor Zappi |
andrewm@0 | 6 */ |
andrewm@0 | 7 |
andrewm@0 | 8 #ifndef PRIO_H_ |
andrewm@0 | 9 #define PRIO_H_ |
andrewm@0 | 10 |
andrewm@0 | 11 |
andrewm@0 | 12 #include <pthread.h> |
andrewm@0 | 13 #include <sched.h> |
andrewm@0 | 14 #include <iostream> |
andrewm@0 | 15 |
andrewm@0 | 16 //----------------------------------------------------------------------------------------------------------- |
andrewm@0 | 17 // set maximum real-time priority to this thread |
andrewm@0 | 18 //----------------------------------------------------------------------------------------------------------- |
andrewm@0 | 19 void set_realtime_priority(int order); |
andrewm@0 | 20 //----------------------------------------------------------------------------------------------------------- |
andrewm@0 | 21 |
andrewm@0 | 22 #endif /* PRIO_H_ */ |