[Zope-Checkins] CVS: ZODB3/BDBStorage - BerkeleyBase.py:1.41.18.1

Jeremy Hylton jeremy@zope.com
Wed, 16 Jul 2003 15:36:00 -0400


Update of /cvs-repository/ZODB3/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv5686/BDBStorage

Modified Files:
      Tag: zodb33-devel-branch
	BerkeleyBase.py 
Log Message:
Change to use locks from the threading module.


=== ZODB3/BDBStorage/BerkeleyBase.py 1.41 => 1.41.18.1 ===
--- ZODB3/BDBStorage/BerkeleyBase.py:1.41	Fri Feb 28 14:51:21 2003
+++ ZODB3/BDBStorage/BerkeleyBase.py	Wed Jul 16 15:35:25 2003
@@ -31,7 +31,6 @@
 from ZODB.lock_file import LockFile
 from ZODB.BaseStorage import BaseStorage
 from ZODB.referencesf import referencesf
-import ThreadLock
 import zLOG
 
 GBYTES = 1024 * 1024 * 1000
@@ -211,7 +210,7 @@
         self._is_read_only = config.read_only
 
         # Instantiate a pack lock
-        self._packlock = ThreadLock.allocate_lock()
+        self._packlock = threading.RLock()
         self._stop = self._closed = False
         # Initialize a few other things
         self._prefix = prefix