def __is_on_top(self, cond):
    (_, prioqueue) = self.__find_first_pending_queue()

    return cond == prioqueue[0]
Checks whether the passed condition is on top of the queue.
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__is_on_top