Revision 70567db0

b/lib/locking.py
804 804
      # Autodetect release type
805 805
      if self.__is_exclusive():
806 806
        self.__exc = None
807
        notify = True
807 808
      else:
808 809
        self.__shr.remove(threading.currentThread())
810
        notify = not self.__shr
809 811

  
810
      # Notify topmost condition in queue
811
      self.__notify_topmost()
812
      # Notify topmost condition in queue if there are no owners left (for
813
      # shared locks)
814
      if notify:
815
        self.__notify_topmost()
812 816
    finally:
813 817
      self.__lock.release()
814 818

  

Also available in: Unified diff