Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11515

Add interface for lock classes and add new methods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0-a1, 3.3.0-b1
    • 3.1.0-dev
    • Other

      <naderman> well we could change acquire into try_lock and add a second method lock which throws an exception if it couldn't lock
      <naderman> then you wouldn't need your own exception stuff
      <naderman> try_lock would keep the behaviour of acquire(), ensure_lock() would throw an exception if unable to lock, return false if already locked and true if locked

            Marc Marc
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: