From 39c12bfba1f2094d9ee997ee71e816980ff674f7 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 14 Aug 2002 17:46:40 +0000 Subject: [PATCH] Explain a little more. --- Lib/threading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/threading.py b/Lib/threading.py index e2ce9fe6576..fb6201004f6 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -172,6 +172,7 @@ def _acquire_restore(self, x): self.__lock.acquire() # Ignore saved state def _is_owned(self): + # Return True if lock is owned by currentThread. # This method is called only if __lock doesn't have _is_owned(). if self.__lock.acquire(0): self.__lock.release()