mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 04:44:42 +00:00
lock debug
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2600 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
0ea778b6fd
commit
50c536c82a
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class AssertLock (lock_klass):
|
|||
Acquire lock.
|
||||
"""
|
||||
assert not self.is_locked(), "deadlock"
|
||||
#linkcheck.log.debug(linkcheck.LOG_THREAD, "Acquire %s", self, tb=True)
|
||||
linkcheck.log.debug(linkcheck.LOG_THREAD, "Acquire %s", self)
|
||||
super(AssertLock, self).acquire(blocking=blocking)
|
||||
|
||||
def release (self):
|
||||
|
|
@ -47,7 +47,7 @@ class AssertLock (lock_klass):
|
|||
Release lock.
|
||||
"""
|
||||
assert self.is_locked(), "double release"
|
||||
#linkcheck.log.debug(linkcheck.LOG_THREAD, "Release %s", self, tb=True)
|
||||
linkcheck.log.debug(linkcheck.LOG_THREAD, "Release %s", self)
|
||||
super(AssertLock, self).release()
|
||||
|
||||
def is_locked (self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue