File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
io-sim/src/Control/Monad/IOSimPOR Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1251,9 +1251,11 @@ execNewTVar nextVid !mbLabel x = do
1251
1251
1252
1252
execReadTVar :: TVar s a -> ST s a
1253
1253
execReadTVar TVar {tvarCurrent} = readSTRef tvarCurrent
1254
+ {-# INLINE execReadTVar #-}
1254
1255
1255
1256
execWriteTVar :: TVar s a -> a -> ST s ()
1256
1257
execWriteTVar TVar {tvarCurrent} = writeSTRef tvarCurrent
1258
+ {-# INLINE execWriteTVar #-}
1257
1259
1258
1260
saveTVar :: TVar s a -> ST s ()
1259
1261
saveTVar TVar {tvarCurrent, tvarUndo} = do
@@ -1268,12 +1270,14 @@ revertTVar TVar{tvarCurrent, tvarUndo} = do
1268
1270
(v: vs) <- readSTRef tvarUndo
1269
1271
writeSTRef tvarCurrent v
1270
1272
writeSTRef tvarUndo vs
1273
+ {-# INLINE revertTVar #-}
1271
1274
1272
1275
commitTVar :: TVar s a -> ST s ()
1273
1276
commitTVar TVar {tvarUndo} = do
1274
1277
-- pop the undo stack, leaving the current value unchanged
1275
1278
(_: vs) <- readSTRef tvarUndo
1276
1279
writeSTRef tvarUndo vs
1280
+ {-# INLINE commitTVar #-}
1277
1281
1278
1282
readTVarUndos :: TVar s a -> ST s [a ]
1279
1283
readTVarUndos TVar {tvarUndo} = readSTRef tvarUndo
You can’t perform that action at this time.
0 commit comments