Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | List of all members
om::threads::ThreadPriority Class Reference

An enum class that specifies the different execution priorities that a thread can have. More...

#include <omThreadPriority.h>

Public Types

enum  Enum {
  DEFAULT, LOW, MEDIUM, HIGH,
  TIME_CRITICAL
}
 An enum type which represents the types of thread scheduling priority. More...
 

Public Member Functions

 ThreadPriority ()
 Create a new thread priority with the DEFAULT thread priority. More...
 
 ThreadPriority (Enum newType)
 Create a new thread priority with the specified thread priority enum value. More...
 
 operator Enum () const
 Convert this thread priority type to an enum value. More...
 
data::String toString () const
 Return a string representation of the thread priority. More...
 
 operator data::String () const
 Convert this thread priority into a string representation. More...
 

Detailed Description

An enum class that specifies the different execution priorities that a thread can have.

Member Enumeration Documentation

An enum type which represents the types of thread scheduling priority.

Enumerator
DEFAULT 

The default thread priority.

LOW 

A thread priority for processes that don't need to be run often.

MEDIUM 

A thread priority for processes with priority between low and high.

HIGH 

A thread priority for processes that need to be run often.

TIME_CRITICAL 

A thread priority used for time-critical processing with strict real-time requirements.

Constructor & Destructor Documentation

om::threads::ThreadPriority::ThreadPriority ( )
inline

Create a new thread priority with the DEFAULT thread priority.

om::threads::ThreadPriority::ThreadPriority ( Enum  newType)
inline

Create a new thread priority with the specified thread priority enum value.

Member Function Documentation

om::threads::ThreadPriority::operator Enum ( ) const
inline

Convert this thread priority type to an enum value.

data::String om::threads::ThreadPriority::toString ( ) const

Return a string representation of the thread priority.

om::threads::ThreadPriority::operator data::String ( ) const
inline

Convert this thread priority into a string representation.


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