Mercurial > hg > beaglert
annotate examples/10-Instruments/d-box/prio.h @ 533:2ec36efb2c52 prerelease
Added tremolo to audio examples.
| author | Robert Jack <robert.h.jack@gmail.com> | 
|---|---|
| date | Thu, 23 Jun 2016 21:17:16 +0100 | 
| parents | 8fcfbfb32aa0 | 
| 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_ */ | 
