File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
io-sim/src/Control/Monad/IOSimPOR Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -768,8 +768,7 @@ threadInterruptible thread =
768
768
769
769
deschedule :: Deschedule -> Thread s a -> SimState s a -> ST s (SimTrace a )
770
770
771
- deschedule Yield thread@ Thread { threadId = tid
772
- , threadEffect = effect }
771
+ deschedule Yield thread@ Thread { threadId = tid }
773
772
simstate@ SimState {runqueue, threads, control} =
774
773
775
774
-- We don't interrupt runnable threads anywhere else.
@@ -779,7 +778,8 @@ deschedule Yield thread@Thread { threadId = tid
779
778
runqueue' = insertThread thread' runqueue
780
779
threads' = Map. insert tid thread' threads
781
780
control' = advanceControl (threadStepId thread) control in
782
- reschedule simstate { runqueue = runqueue', threads = threads',
781
+ reschedule simstate { runqueue = runqueue',
782
+ threads = threads',
783
783
races = updateRacesInSimState thread simstate,
784
784
control = control' }
785
785
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ racingEffects e e' =
74
74
|| effectWrites e `intersects` effectReads e'
75
75
|| effectWrites e `intersects` effectWrites e'
76
76
|| effectStatusReads e `intersectsL` effectStatusWrites e'
77
+ || effectStatusWrites e `intersectsL` effectStatusReads e'
77
78
|| effectStatusWrites e `intersectsL` effectStatusWrites e'
78
79
where
79
80
intersects :: Ord a => Set a -> Set a -> Bool
You can’t perform that action at this time.
0 commit comments