aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/states.ml
diff options
context:
space:
mode:
authorGravatar gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-30 12:20:10 +0000
committerGravatar gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-08-30 12:20:10 +0000
commit6a5b186d2b53cf2c3e3a7ed5c238d26367a9df96 (patch)
tree06830f8dd95df021b1c84e97801e4b49b585f3eb /library/states.ml
parentfe07a7f5f4b5b1d92e0e83cab9b886b642c6f8eb (diff)
recdef: restore old semantics (pre STM)
The Stm commit switched from an home made handling of failures to a with_state_protection. This was wrong, since in case of success the global state has to be left altered. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16746 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/states.ml')
-rw-r--r--library/states.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/states.ml b/library/states.ml
index a06e7ce80..ea4e7d43c 100644
--- a/library/states.ml
+++ b/library/states.ml
@@ -39,4 +39,4 @@ let with_state_protection f x =
with reraise ->
(unfreeze st; raise reraise)
-
+let with_state_protection_on_exception = Future.transactify