[Patches] [ python-Patches-410709 ] Condition.wait() and KeyboardInterrupt
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 22 Mar 2001 21:47:00 -0800
Patches item #410709, was updated on 2001-03-22 21:46
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=410709&group_id=5470
Category: Modules
Group: 2.0.1 bugfix
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
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)
>
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=410709&group_id=5470