Copyright | (c) The University of Glasgow 2002 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | William N. Halchin (vigalchin@gmail.com) |
Stability | provisional |
Portability | non-portable (requires POSIX) |
Safe Haskell | None |
Language | Haskell98 |
POSIX 1003.1b realtime scheduling support. See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html.
- 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 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