[Patches] [ python-Patches-850728 ] Semaphore.acquire() timeout parameter

SourceForge.net noreply at sourceforge.net
Fri Nov 28 07:47:34 EST 2003


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

Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
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.



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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=850728&group_id=5470



More information about the Patches mailing list