posix-realtime-0.0.0.2: POSIX Realtime functionality

Portabilitynon-portable (requires POSIX)
Stabilityprovisional
MaintainerWilliam N. Halchin (vigalchin@gmail.com)
Safe HaskellNone

System.Posix.Realtime.RTSched

Description

POSIX 1003.1b realtime scheduling support.

Synopsis

Documentation

type Pid = IntSource

type Policy = IntSource

data SchedParam Source

Constructors

SchedParam 

Fields

schedPriority :: Int
 

Instances

Storable SchedParam 

schedYield :: IO ()Source

Running thread relinquishes control of its processor

schedGetScheduler :: Pid -> IO IntSource

Returns the scheduling policy of the process specified by Pid.

schedSetScheduler :: Pid -> Policy -> SchedParam -> IO ()Source

Sets the scheduling policy and scheduling parameters of the process | specified by Pid to policy and the parameters specified schedParam. | The value of the schedPriority member in schedParam is any integer | within the inclusive priority range for the scheduling policy specified | by policy.

schedGetParam :: Pid -> IO SchedParamSource

Returns the scheduling parameters of a process specified by Pid | in schedParam.

schedSetParam :: Pid -> SchedParam -> IO ()Source

Sets the scheduling parameters of the process specified by Pid to | the values specified by schedParam.

schedGetPriorityMin :: Policy -> IO IntSource

Returns the appropriate minimum for the scheduling policy specified | by Policy.

schedGetPriorityMax :: Policy -> IO IntSource

Returns the appropriate maximum for the scheduling policy specified | by Policy.

schedRRGetInterval :: Pid -> IO TimeSpecSource

Get Round Robin scheduling interval