

def __init__(self, kind, value, maxvalue):
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
    debug(('created semlock with handle %s' % sl.handle))
    self._make_methods()
    if (sys.platform != 'win32'):

        def _after_fork(obj):
            obj._semlock._after_fork()
        register_after_fork(self, _after_fork)

dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/multiprocessing/synchronize.py SemLock.__init__/original