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

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

src/m/o/mozpool-4.1.5/mozpool/bmm/relay.py   mozpool(Download)
ONE_SECOND = 1
 
locks = util.LocksByName()
logger = logging.getLogger('bmm.relay')
 

src/m/o/mozpool-4.1.5/mozpool/statemachine.py   mozpool(Download)
            # add distinct class-level variables for each subclass
            cls.statesByName = {}
            cls.locksByMachine = util.LocksByName()
 
            return cls

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')
        self.lbn.release('one')
        self.lbn.release('two')
 
    def test_LocksByName_same_name(self):
        self.lbn = util.LocksByName()