Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/m/o/mozpool-4.1.5/mozpool/bmm/relay.py   mozpool(Download)
        # sleep long enough for the relay board to recover after the TCP connection
        time.sleep(ONE_SECOND)
        locks.release(relay_board_name)
 
class TimeoutError(Exception):

src/m/o/mozpool-4.1.5/mozpool/test/unit/test_util.py   mozpool(Download)
        self.lbn.acquire('one')
        self.lbn.acquire('two')
        self.lbn.release('one')
        self.lbn.release('two')
 
        def other_thread():
            events.append('other started')
            self.lbn.acquire('one')
            events.append('other locked')
            self.lbn.release('one')
            pass
        events.append('unlocking this')
        self.lbn.release('one')
        thd.join()