[Python-bugs-list] [ python-Bugs-410708 ] Condition.wait() and KeyboardInterrupt
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 02 Apr 2001 13:16:15 -0700
Bugs item #410708, was updated on 2001-03-22 21:41
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=410708&group_id=5470
Category: Threads
Group: None
>Status: Closed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Tim Peters (tim_one)
Summary: Condition.wait() and KeyboardInterrupt
Initial Comment:
>My problem is: Condition.wait() is not protected
against
>KeyboardInterrupt. Fix is below.
>
>Regards,
>Oleg.
>
>-----------------------------
>#python 2.0, threading.py:
>
>...
>class _Condition(_Verbose):
>...
> def wait(self, timeout=None):
>...
> saved_state = self._release_save()
># line to be inserted
> try:
>...
># line to be inserted
> finally:
> self._acquire_restore(saved_state)
>
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2001-04-02 13:16
Message:
Logged In: YES
user_id=31435
Looked reasonable to me -- thanks. Applied to
threading.py, rev 1.12.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=410708&group_id=5470