Skip to content

Commit bb60912

Browse files
committed
io-sim-por: correctly update read tvars
As done in `io-sim`.
1 parent 7103b11 commit bb60912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io-sim/src/Control/Monad/IOSimPOR/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ execAtomically time tid tlbl nextVid0 action0 k0 =
11701170
go ctl read written writtenSeq createdSeq nextVid k
11711171

11721172
ReadTVar v k
1173-
| tvarId v `Map.member` read || tvarId v `Map.member` written ->
1173+
| tvarId v `Map.member` read ->
11741174
{-# SCC "execAtomically.go.ReadTVar" #-} do
11751175
x <- execReadTVar v
11761176
go ctl read written writtenSeq createdSeq nextVid (k x)

0 commit comments

Comments
 (0)