def __is_exclusive(self):
    return threading.currentThread() == self.__exc
Is the current thread holding the lock exclusively at this time?
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__is_exclusive