On Wed, Dec 12, 2012 at 1:53 PM, MRAB <python at mrabarnett.plus.com> wrote: > You could try a non-blocking semaphore: > > def __init__(self): > self.cameraActive = Semaphore() Why a Semaphore and not just a plain old Lock?