

@locked()
def _am_i_writing(self):
    am_i = ((self._writing != None) and (self._writing[0] == threading.currentThread()))
    if am_i:
        am_i._writing[1] = (self._writing[1] + 1)
    return am_i

dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/lock.py RWLock._am_i_writing/VarMisuse@47/62 `self`->`am_i`