Preventing tread collisions

Ian Kelly ian.g.kelly at
Wed Dec 12 21:58:33 CET 2012

On Wed, Dec 12, 2012 at 1:53 PM, MRAB <python at> wrote:
> You could try a non-blocking semaphore:
> def __init__(self):
>     self.cameraActive = Semaphore()

Why a Semaphore and not just a plain old Lock?

More information about the Python-list mailing list