Copyright | [2009..2023] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Stream management routines
Stream Management
A processing stream. All operations in a stream are synchronous and executed in sequence, but operations in different non-default streams may happen out-of-order or concurrently with one another.
Use Event
s to synchronise operations between streams.
defaultStream :: Stream Source #
The default execution stream. This can be configured to have either
defaultStreamLegacy
or defaultStreamPerThread
synchronisation behaviour.
defaultStreamLegacy :: Stream Source #
The legacy default stream is an implicit stream which synchronises with all
other streams in the same Context
, except for non-blocking streams.
Since: 0.10.0.0
defaultStreamPerThread :: Stream Source #
The per-thread default stream is an implicit stream local to both the
thread and the calling Context
, and which does not synchronise with other
streams (just like explicitly created streams). The per-thread default stream
is not a non-blocking stream and will synchronise with the legacy default
stream if both are used in the same program.
Since: 0.10.0.0