Safe Haskell | None |
---|
WASH.CGI.CGIHistory
- historyTimeout :: Int
- type StateID = (String, String)
- history :: MVar (Map StateID TableEntry)
- data TableEntry = TableEntry {}
- createEntry :: StateID -> Maybe StateID -> PARAMETER -> Maybe Int -> IO ()
- readParameters :: StateID -> IO (CGIParameters, Handle)
- notify :: StateID -> CGIParameters -> Handle -> IO Bool
- uncons :: [a] -> ([a], Maybe a)
Documentation
historyTimeout :: IntSource
standard value for timeout of interaction threads: one hundred seconds
history :: MVar (Map StateID TableEntry)Source
data TableEntry Source
Constructors
TableEntry | |
createEntry :: StateID -> Maybe StateID -> PARAMETER -> Maybe Int -> IO ()Source
Takes the id of the current node, the id of the father node (if any), the current parameter, and (perhaps) a timeout value for the current interaction and enters a corresponding record into the history table.
readParameters :: StateID -> IO (CGIParameters, Handle)Source
Suspends the current thread by waiting on an entry with the current node's id. Returns the parameters passed to this node.
notify :: StateID -> CGIParameters -> Handle -> IO BoolSource
Attempts to pass parameters and a handle to a thread waiting for the given stateID. Returns True if successful and False if no such thread was found.