Copyright | Copyright (c) 2015-2017 David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
Tested with: GHC 7.10.3
This module allows running the time server that coordinates the global simulation time.
- data TimeServerParams = TimeServerParams {}
- defaultTimeServerParams :: TimeServerParams
- timeServer :: Int -> TimeServerParams -> Process ()
- curryTimeServer :: (Int, TimeServerParams) -> Process ()
Documentation
data TimeServerParams Source #
The time server parameters.
TimeServerParams | |
|
defaultTimeServerParams :: TimeServerParams Source #
The default time server parameters.
timeServer :: Int -> TimeServerParams -> Process () Source #
Start the time server by the specified initial quorum and parameters. The quorum defines the number of local processes that must be registered in the time server before the global time synchronization is started.
curryTimeServer :: (Int, TimeServerParams) -> Process () Source #
A curried version of timeServer
for starting the time server on remote node.