[Python-Dev] Add an optional timeout to lock operations
Antoine Pitrou
solipsis at pitrou.net
Tue Nov 17 17:21:41 CET 2009
Guido van Rossum <guido <at> python.org> writes:
>
> I think the number of platforms
> has dwindled to two or three (Posix, Windows, and maybe one minority
> OS?), so now's the time to do it. (IOW I think the idea of the patch
> is fine.)
Thanks. (the minority OS would be OS/2, I think)
> Will locks be interruptible with ^C? That is an oft-requested feature
> which also wasn't supported at that time; what's the situation
> nowadays?
They still aren't interruptible. From what I can read it may be possible to make
them interruptible in the POSIX semaphore-based implementation, not in the POSIX
condition variable-based implementation (which is used as a fallback when POSIX
semaphores are not available, but I don't know whether this fallback is still
useful).
As for Windows I have absolutely no idea.
Regards
Antoine.
More information about the Python-Dev
mailing list