Author: Armin Rigo <[email protected]>
Branch: stm-gc-2
Changeset: r63119:b3939745e8f0
Date: 2013-04-07 20:25 +0200
http://bitbucket.org/pypy/pypy/changeset/b3939745e8f0/
Log: Export this API through rstm.py.
diff --git a/rpython/rlib/rstm.py b/rpython/rlib/rstm.py
--- a/rpython/rlib/rstm.py
+++ b/rpython/rlib/rstm.py
@@ -46,6 +46,12 @@
def abort_and_retry():
stmgcintf.StmOperations.abort_and_retry()
+def start_single_thread():
+ stmgcintf.StmOperations.start_single_thread()
+
+def stop_single_thread():
+ stmgcintf.StmOperations.stop_single_thread()
+
def before_external_call():
if not is_atomic():
e = get_errno()
diff --git a/rpython/translator/stm/stmgcintf.py
b/rpython/translator/stm/stmgcintf.py
--- a/rpython/translator/stm/stmgcintf.py
+++ b/rpython/translator/stm/stmgcintf.py
@@ -73,5 +73,8 @@
inspect_abort_info = smexternal('stm_inspect_abort_info',
[], rffi.CCHARP)
+ start_single_thread = smexternal('stm_start_single_thread',[], lltype.Void)
+ stop_single_thread = smexternal('stm_stop_single_thread', [], 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