Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11515

Add interface for lock classes and add new methods

    XMLWordPrintable

Details

    Description

      <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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: