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

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

src/c/o/concoord-1.1.0/concoord/object/boundedsemaphore.py   concoord(Download)
@copyright: See LICENSE
"""
from concoord.threadingobject.dboundedsemaphore import DBoundedSemaphore
 
class BoundedSemaphore():
    def __init__(self, count=1):
        self.semaphore = DBoundedSemaphore(count)
 
    def __repr__(self):
        return repr(self.semaphore)

src/c/o/concoord-HEAD/concoord/object/boundedsemaphore.py   concoord(Download)
@copyright: See LICENSE
"""
from concoord.threadingobject.dboundedsemaphore import DBoundedSemaphore
 
class BoundedSemaphore():
    def __init__(self, count=1):
        self.semaphore = DBoundedSemaphore(count)
 
    def __repr__(self):
        return repr(self.semaphore)