File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
io-sim/src/Control/Monad/IOSimPOR Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ schedule thread@Thread{
510
510
511
511
Atomically a k -> execAtomically time tid tlbl nextVid (runSTM a) $ \ res ->
512
512
case res of
513
- StmTxCommitted x read written nextVid' -> do
513
+ StmTxCommitted x written read nextVid' -> do
514
514
(wakeup, wokeby) <- threadsUnblockedByWrites written
515
515
mapM_ (\ (SomeTVar tvar) -> unblockAllThreadsFromTVar tvar) written
516
516
vClockRead <- leastUpperBoundTVarVClocks read
@@ -1008,8 +1008,9 @@ execAtomically time tid tlbl nextVid0 action0 k0 =
1008
1008
) written
1009
1009
1010
1010
-- Return the vars written, so readers can be unblocked
1011
- k0 $ StmTxCommitted x (Map. elems read )
1012
- (reverse writtenSeq) nextVid
1011
+ k0 $ StmTxCommitted x (reverse writtenSeq)
1012
+ (Map. elems read )
1013
+ nextVid
1013
1014
1014
1015
OrElseLeftFrame _b k writtenOuter writtenOuterSeq ctl' -> do
1015
1016
-- Commit the TVars written in this sub-transaction that are also
You can’t perform that action at this time.
0 commit comments