[LockManager] Made it easier to get both SH and EX locks at once.
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 20 Apr 2013 07:10:19 +0000 (00:10 -0700)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 5 Jun 2013 05:46:21 +0000 (05:46 +0000)
commit0ec0e192622a6df50830a86e27d07a8154d51c1e
tree54d2b3561d1ba52145e10d203889d092aec5ceb0
parent58f71c7e9eca460bfaf518c6c1fecaca87b58dd3
[LockManager] Made it easier to get both SH and EX locks at once.

* This also makes it possible for subclasses to optimize this case.
* Added a timeout parameter to ScopedLock::factory().
* Cleaned up a few bits of documentation.

Change-Id: Id3e9cf01f25ab498ea00d87ffb6d00aa8b05052b
includes/filebackend/lockmanager/LockManager.php
includes/filebackend/lockmanager/ScopedLock.php