#include <j2k/nto/fixprio.hpp>Go to the source code of this file.
Functions | |
| int | fixprio (int prio) |
|
|
Definition at line 6 of file fixprio.cpp. 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