Commit 2f99cdb9 authored by Edward Z. Yang's avatar Edward Z. Yang

Update docs for readMVar/tryReadMVar.

Signed-off-by: Edward Z. Yang's avatarEdward Z. Yang <>
parent 193e0ee9
......@@ -279,12 +279,16 @@
<literal>Control.Concurrent.MVar</literal> has two
new functions, <literal>atomicReadMVar</literal> and
<literal>tryAtomicReadMVar</literal>, which
implement <literal>readMVar</literal> that cannot be
affected by other threads. (XXXX we may change the implementation
of <literal>readMVar</literal> to use this.)
<literal>Control.Concurrent.MVar</literal> has a new
implementation of <literal>readMVar</literal>, which
fixes a long-standing bug where
<literal>readMVar</literal> is only atomic if there
are no other threads running
<literal>readMVar</literal> now is atomic, and is
guaranteed to return the value from the first
<literal>putMVar</literal>. There is also a new <literal>tryReadMVar</literal>
which is a non-blocking version.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment