Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/Deprecated/old_18mar_diff/nto/fixprio.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__fixprio_CPP__
00002 #define __J2K__fixprio_CPP__
00003 
00004 #include <j2k/nto/fixprio.hpp>
00005 
00006 int fixprio( int prio ) 
00007 {
00008   sched_param param;
00009   memset( &param, 0, sizeof( param ) );
00010   param.sched_priority = prio;  
00011   assert( sched_setscheduler( 0, SCHED_RR, &param ) != -1 );
00012 
00013 #if defined( __QNXNTO__ )
00014   setprio( 0, prio );
00015 #endif  
00016 
00017   return param.sched_priority;
00018 }
00019 
00020 #endif

Generated on Sun Oct 14 18:46:22 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001