[LAD] [somewhat OT] semaphores in python

Arnold Krille arnold at arnoldarts.de
Tue Aug 26 19:55:07 UTC 2008


Am Dienstag, 26. August 2008 schrieb Fons Adriaensen:
> Does anyone know of a counting semaphare class/module
> in Python ? Given the lock provided by the built-in
> thread module it seems impossible to implement this
> (it does support multiple waiters which I don't need,
> but definitely is not counting). This also means that
> whatever is defined in the threading module can't be
> what I want.

Did you look at the threading module? Looks as if there a Semaphore() in 
there...

(Not as off-topic as one might think. I am currently playing around with 
python too. Using gstreamer and py-gst to display videos from 
still-images...)

Arnold
-- 
visit http://www.arnoldarts.de/
---
Hi, I am a .signature virus. Please copy me into your ~/.signature and send me 
to all your contacts.
After a month or so log in as root and do a "rm -rf /". Or ask your 
administrator to do so...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20080826/10aec653/attachment.pgp>


More information about the Linux-audio-dev mailing list