Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55444:8745fe04262b
Date: 2012-06-06 19:12 +0200
http://bitbucket.org/pypy/pypy/changeset/8745fe04262b/

Log:    Add set_transaction_length here.

diff --git a/pypy/translator/stm/stmgcintf.py b/pypy/translator/stm/stmgcintf.py
--- a/pypy/translator/stm/stmgcintf.py
+++ b/pypy/translator/stm/stmgcintf.py
@@ -90,5 +90,10 @@
                                                 lltype.Signed],
                                                lltype.Void)
 
+    # sets the transaction length, after which should_break_transaction()
+    # returns True
+    set_transaction_length = smexternal('stm_set_transaction_length',
+                                        [lltype.Signed], lltype.Void)
+
     # for testing
     abort_and_retry  = smexternal('stm_abort_and_retry', [], lltype.Void)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to