Mercurial > hg > beaglert
annotate examples/10-Instruments/d-box/prio.h @ 464:8fcfbfb32aa0 prerelease
Examples reorder with subdirectories. Added header to each project. Moved Doxygen to bottom of render.cpp.
author | Robert Jack <robert.h.jack@gmail.com> |
---|---|
date | Mon, 20 Jun 2016 16:20:38 +0100 |
parents | |
children |
rev | line source |
---|---|
robert@464 | 1 /* |
robert@464 | 2 * prio.h |
robert@464 | 3 * |
robert@464 | 4 * Created on: May 14, 2014 |
robert@464 | 5 * Author: Victor Zappi |
robert@464 | 6 */ |
robert@464 | 7 |
robert@464 | 8 #ifndef PRIO_H_ |
robert@464 | 9 #define PRIO_H_ |
robert@464 | 10 |
robert@464 | 11 |
robert@464 | 12 #include <pthread.h> |
robert@464 | 13 #include <sched.h> |
robert@464 | 14 #include <iostream> |
robert@464 | 15 |
robert@464 | 16 //----------------------------------------------------------------------------------------------------------- |
robert@464 | 17 // set maximum real-time priority to this thread |
robert@464 | 18 //----------------------------------------------------------------------------------------------------------- |
robert@464 | 19 void set_realtime_priority(int order); |
robert@464 | 20 //----------------------------------------------------------------------------------------------------------- |
robert@464 | 21 |
robert@464 | 22 #endif /* PRIO_H_ */ |