diff MoinMoin/caching.py @ 1309:238c43cb8877

lock: LazyReadLock, LazyWriteLock == do nothing. Only for POSIX OS and POSIX style of code using that kind of locks (see comments there).
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 17 Aug 2006 13:03:53 +0200
parents 6bc162aba29d
children c4f6af5ee295
line wrap: on
line diff
--- a/MoinMoin/caching.py	Thu Aug 17 12:12:31 2006 +0200
+++ b/MoinMoin/caching.py	Thu Aug 17 13:03:53 2006 +0200
@@ -43,8 +43,8 @@
             filesys.makeDirs(self.arena_dir)
         if self.locking:
             self.lock_dir = os.path.join(self.arena_dir, '__lock__')
-            self.rlock = lock.ReadLock(self.lock_dir, 60.0)
-            self.wlock = lock.WriteLock(self.lock_dir, 60.0)
+            self.rlock = lock.LazyReadLock(self.lock_dir, 60.0)
+            self.wlock = lock.LazyWriteLock(self.lock_dir, 60.0)
 
     def _filename(self):
         return os.path.join(self.arena_dir, self.key)