Miosix  2.0alpha1
miosix::LowerPriority Class Reference

#include <kernel.h>

Inherits binary_function< Thread *, Thread *, bool >.

Public Member Functions

bool operator() (Thread *a, Thread *b)
 

Detailed Description

Function object to compare the priority of two threads.

Member Function Documentation

bool miosix::LowerPriority::operator() ( Thread a,
Thread b 
)
inline
Parameters
afirst thread to compare
bsecond thread to compare
Returns
true if a->getPriority() < b->getPriority()

Can be called when the kernel is paused. or with interrupts disabled


The documentation for this class was generated from the following file: