[pypy-commit] pypy stm-gc: Rename this method

arigo noreply at buildbot.pypy.org
Fri Apr 20 19:02:38 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
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
 
     # ----------


More information about the pypy-commit mailing list