Skip to content

Commit 9649055

Browse files
MaximilianAlgehedcoot
authored andcommitted
Review comments
1 parent 0611cb0 commit 9649055

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,7 @@ threadInterruptible thread =
768768

769769
deschedule :: Deschedule -> Thread s a -> SimState s a -> ST s (SimTrace a)
770770

771-
deschedule Yield thread@Thread { threadId = tid
772-
, threadEffect = effect }
771+
deschedule Yield thread@Thread { threadId = tid }
773772
simstate@SimState{runqueue, threads, control} =
774773

775774
-- We don't interrupt runnable threads anywhere else.
@@ -779,7 +778,8 @@ deschedule Yield thread@Thread { threadId = tid
779778
runqueue' = insertThread thread' runqueue
780779
threads' = Map.insert tid thread' threads
781780
control' = advanceControl (threadStepId thread) control in
782-
reschedule simstate { runqueue = runqueue', threads = threads',
781+
reschedule simstate { runqueue = runqueue',
782+
threads = threads',
783783
races = updateRacesInSimState thread simstate,
784784
control = control' }
785785

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ racingEffects e e' =
7474
|| effectWrites e `intersects` effectReads e'
7575
|| effectWrites e `intersects` effectWrites e'
7676
|| effectStatusReads e `intersectsL` effectStatusWrites e'
77+
|| effectStatusWrites e `intersectsL` effectStatusReads e'
7778
|| effectStatusWrites e `intersectsL` effectStatusWrites e'
7879
where
7980
intersects :: Ord a => Set a -> Set a -> Bool

0 commit comments

Comments
 (0)