[Python-checkins] python/dist/src/Lib threading.py,1.26,1.27

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Wed, 14 Aug 2002 10:56:15 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32675

Modified Files:
	threading.py 
Log Message:
Explain use of currentThread() in _Condition methods.


Index: threading.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/threading.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** threading.py	14 Aug 2002 17:46:40 -0000	1.26
--- threading.py	14 Aug 2002 17:56:13 -0000	1.27
***************
*** 182,186 ****
  
      def wait(self, timeout=None):
!         me = currentThread()
          assert self._is_owned(), "wait() of un-acquire()d lock"
          waiter = _allocate_lock()
--- 182,186 ----
  
      def wait(self, timeout=None):
!         currentThread() # for side-effect
          assert self._is_owned(), "wait() of un-acquire()d lock"
          waiter = _allocate_lock()
***************
*** 224,228 ****
  
      def notify(self, n=1):
!         me = currentThread()
          assert self._is_owned(), "notify() of un-acquire()d lock"
          __waiters = self.__waiters
--- 224,228 ----
  
      def notify(self, n=1):
!         currentThread() # for side-effect
          assert self._is_owned(), "notify() of un-acquire()d lock"
          __waiters = self.__waiters