Portability | non-portable (requires Futures) |
---|---|
Stability | experimental |
Maintainer | willig@ki.informatik.uni-frankfurt.de |
This module implements one-place buffers using futures.
Warning: All operations on buffers should only be used within the global wrapper function
withFuturesDo
!
Documentation
type Buffer a = (Cell Bool, Cell Bool, Cell a, Cell (Bool -> IO ()))Source
The buffer type contains of 3 cells and a handle. The first 2 cells are for communication of either a put or get is allowed. The thrist cell is the storage cell, the last cell contains a the active handle.