Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r54588:2c6d4f49051b
Date: 2012-04-20 18:53 +0200
http://bitbucket.org/pypy/pypy/changeset/2c6d4f49051b/

Log:    Rename this method

diff --git a/pypy/module/transaction/interp_local.py 
b/pypy/module/transaction/interp_local.py
--- a/pypy/module/transaction/interp_local.py
+++ b/pypy/module/transaction/interp_local.py
@@ -26,7 +26,7 @@
         # called in a transaction.
 
     def _update_dicts(self, space):
-        new = state.get_number_of_threads() - len(self.dicts)
+        new = state.get_total_number_of_threads() - len(self.dicts)
         if new <= 0:
             return
         # update the list without appending to it (to keep it non-resizable)
diff --git a/pypy/module/transaction/interp_transaction.py 
b/pypy/module/transaction/interp_transaction.py
--- a/pypy/module/transaction/interp_transaction.py
+++ b/pypy/module/transaction/interp_transaction.py
@@ -100,7 +100,7 @@
         id = rstm.thread_id()
         return self.threadnums[id]
 
-    def get_number_of_threads(self):
+    def get_total_number_of_threads(self):
         return 1 + self.num_threads
 
     # ----------
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to