#the lock would already have been acquired - so we need an RLock.
#The same argument applies to Loggers and Manager.loggerDict.
#
-if thread:
- _lock = threading.RLock()
-else:
- _lock = None
+_lock = None
def _acquireLock():
"""
This should be released with _releaseLock().
"""
+ global _lock
+ if (not _lock) and thread:
+ _lock = threading.RLock()
if _lock:
_lock.acquire()
*Release date: XX-XXX-2009*
-Library
--------
-
-- Issue #7403: logging: Fixed possible race condition in lock creation.
-
What's New in Python 2.4.6?
===========================