Skip to content

Commit c45b6ee

Browse files
committed
io-sim: strict execNewTVar
1 parent f3c1cdd commit c45b6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ schedule !thread@Thread{
370370

371371
StartTimeout d action' k ->
372372
{-# SCC "schedule.StartTimeout" #-} do
373-
lock <- TMVar <$> execNewTVar nextVid (Just $ "lock-" ++ show nextTmid) Nothing
373+
!lock <- TMVar <$> execNewTVar nextVid (Just $ "lock-" ++ show nextTmid) Nothing
374374
let !expiry = d `addTime` time
375375
!timers' = PSQ.insert nextTmid expiry (TimerTimeout tid nextTmid lock) timers
376376
!thread' = thread { threadControl =

0 commit comments

Comments
 (0)