mirror of
https://github.com/barrucadu/dejafu.git
synced 2024-12-18 19:11:37 +03:00
Include the CTVarIds of created CTVars in STM Success output
This commit is contained in:
parent
f7b7539445
commit
d5e4f94a08
@ -208,8 +208,8 @@ stepTrans fixed act newctvid = case act of
|
||||
stepNew :: (Ref n r -> CTVarId -> n (STMAction t n r)) -> n (STMAction t n r, n (), CTVarId, [CTVarId], [CTVarId])
|
||||
stepNew na = do
|
||||
let newctvid' = I $ unI newctvid + 1
|
||||
a <- na (wref fixed) newctvid'
|
||||
return (a, nothing, newctvid', [], [])
|
||||
a <- na (wref fixed) newctvid
|
||||
return (a, nothing, newctvid', [], [newctvid])
|
||||
|
||||
stepOrElse :: STMLike t n r a -> STMLike t n r a -> (a -> STMAction t n r) -> n (STMAction t n r, n (), CTVarId, [CTVarId], [CTVarId])
|
||||
stepOrElse a b c = do
|
||||
|
Loading…
Reference in New Issue
Block a user