Skip to content

Commit 3349dd9

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Update lock documentation for more clarity
2 parents d101f1c + 6001ffe commit 3349dd9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/lock.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ method can be safely called repeatedly, even if the lock is already acquired.
5656

5757
.. note::
5858

59-
Unlike other implementations, the Lock Component distinguishes locks
60-
instances even when they are created for the same resource. If a lock has
61-
to be used by several services, they should share the same ``Lock`` instance
62-
returned by the ``LockFactory::createLock`` method.
59+
Unlike other implementations, the Lock Component distinguishes lock
60+
instances even when they are created for the same resource. It means that for
61+
a given scope and resource one lock instance can be acquired multiple times.
62+
If a lock has to be used by several services, they should share the same ``Lock``
63+
instance returned by the ``LockFactory::createLock`` method.
6364

6465
.. tip::
6566

0 commit comments

Comments
 (0)