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)
    to allow the relay board to reset (its TCP stack appears to be single-threaded!)
    """
    locks.acquire(relay_board_name)
    try:
        yield

src/m/o/mozpool-4.1.5/mozpool/test/unit/test_util.py   mozpool(Download)
    def test_LocksByName_different_names(self):
        # this just needs to not deadlock..
        self.lbn = util.LocksByName()
        self.lbn.acquire('one')
        self.lbn.acquire('two')
    def test_LocksByName_same_name(self):
        self.lbn = util.LocksByName()
        events = []
        self.lbn.acquire('one')
        events.append('this locked')
        def other_thread():
            events.append('other started')
            self.lbn.acquire('one')