Kaydet (Commit) ae8454ae authored tarafından Skip Montanaro's avatar Skip Montanaro

of course I muffed it separating the notes code from the initial_value

code.  grrr...
üst 8cb00e23
......@@ -268,8 +268,8 @@ class _Semaphore(_Verbose):
else:
self.__value = self.__value - 1
if __debug__:
self._note("%s.acquire: success, value=%s(%s)",
self, self.__value, self.__initial_value)
self._note("%s.acquire: success, value=%s",
self, self.__value)
rc = 1
self.__cond.release()
return rc
......@@ -278,8 +278,8 @@ class _Semaphore(_Verbose):
self.__cond.acquire()
self.__value = self.__value + 1
if __debug__:
self._note("%s.release: success, value=%s(%s)",
self, self.__value, self.__initial_value)
self._note("%s.release: success, value=%s",
self, self.__value)
self.__cond.notify()
self.__cond.release()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment