posix-realtime-0.0.0.4: POSIX Realtime functionality

Copyright(c) The University of Glasgow 2002
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerWilliam N. Halchin (vigalchin@gmail.com)
Stabilityprovisional
Portabilitynon-portable (requires POSIX)
Safe HaskellNone
LanguageHaskell98

System.Posix.Realtime.RTSched

Description

POSIX 1003.1b realtime scheduling support. See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html.

Synopsis

Documentation

type Pid = Int Source

data SchedParam Source

Constructors

SchedParam 

Fields

schedPriority :: Int
 

schedYield :: IO () Source

Running thread relinquishes control of its processor

schedGetScheduler :: Pid -> IO Int Source

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 SchedParam Source

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 Int Source

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

schedGetPriorityMax :: Policy -> IO Int Source

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

schedRRGetInterval :: Pid -> IO TimeSpec Source

Get Round Robin scheduling interval