#include <assert.h>#include <string.h>Go to the source code of this file.
Defines | |
| #define | __fixprio_HPP__ |
Functions | |
| int | fixprio (int prio) |
|
|
Definition at line 2 of file fixprio.hpp. |
|
|
Definition at line 6 of file fixprio.cpp. Referenced by Timer::Timer(), main(), Consumer::run(), Producer::run(), Timing::start(), and Timer::theTimer().
00007 {
00008 sched_param param;
00009 memset( ¶m, 0, sizeof( param ) );
00010 param.sched_priority = prio;
00011 assert( sched_setscheduler( 0, SCHED_RR, ¶m ) != -1 );
00012
00013 #if defined( __QNXNTO__ )
00014 setprio( 0, prio );
00015 #endif
00016
00017 return param.sched_priority;
00018 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001