Patches item #850728, was opened at 2003-11-28 12:47
Message generated for change (Comment added) made by aptshansen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=850728&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dmitry Vasiliev (hdima)
Assigned to: Nobody/Anonymous (nobody)
Summary: Semaphore.acquire() timeout parameter

Initial Comment:
New optional timeout parameter for Semaphore.acquire().

acquire(block=True, timeout=None)

When invoked with blocking set to true and timeout set to
a positive number, it blocks at most timeout seconds
and return false if the internal counter is still zero;
otherwise return true.



----------------------------------------------------------------------

Comment By: Stephen Hansen (aptshansen)
Date: 2007-03-16 07:08

Message:
Logged In: YES 
user_id=1720594
Originator: NO

This applies cleanly against the HEAD, and passes all of the threading
tests. I don't see any reason NOT to have a timeout on the Semaphores, and
the implementation is clean enough.

I do think that it should have some tests written since its a newish
feature before being accepted, though.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=850728&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to