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.hpp File Reference

#include <assert.h>
#include <string.h>

Go to the source code of this file.

Defines

#define __fixprio_HPP__

Functions

int fixprio (int prio)


Define Documentation

#define __fixprio_HPP__
 

Definition at line 2 of file fixprio.hpp.


Function Documentation

int fixprio int    prio
 

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( &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 }


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