Portability | non-portable (requires POSIX) |
---|---|
Stability | provisional |
Maintainer | William N. Halchin (vigalchin@gmail.com) |
Safe Haskell | None |
POSIX 1003.1b realtime scheduling support.
- type Pid = Int
- type Policy = Int
- data SchedParam = SchedParam {
- schedPriority :: Int
- schedYield :: IO ()
- schedGetScheduler :: Pid -> IO Int
- schedSetScheduler :: Pid -> Policy -> SchedParam -> IO ()
- schedGetParam :: Pid -> IO SchedParam
- schedSetParam :: Pid -> SchedParam -> IO ()
- schedGetPriorityMin :: Policy -> IO Int
- schedGetPriorityMax :: Policy -> IO Int
- schedRRGetInterval :: Pid -> IO TimeSpec
Documentation
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