File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
.. index ::
2
2
single: Lock
3
3
4
- Dealing with concurrency with Lock
4
+ Dealing with concurrency with Locks
5
5
==================================
6
6
7
7
When a program runs concurrently, some part of code which modify shared
8
8
resources should not be accessed by multiple processes at the same time.
9
- Symfony's :doc: `Lock </components/lock >` provides a locking mechanism to ensure
9
+ Symfony's :doc: `Lock component </components/lock >` provides a locking mechanism to ensure
10
10
that only one process is running the critical section of code at any point of
11
11
time to prevent race condition from happening.
12
12
@@ -26,7 +26,7 @@ Installation
26
26
------------
27
27
28
28
In applications using :ref: `Symfony Flex <symfony-flex >`, run this command to
29
- install messenger :
29
+ install the Lock component :
30
30
31
31
.. code-block :: terminal
32
32
@@ -180,7 +180,7 @@ To lock the default resource, autowire the lock using
180
180
181
181
.. caution ::
182
182
183
- The same instance of ``LockInterface `` won't block when calling `acquire``
183
+ The same instance of ``LockInterface `` won't block when calling `` acquire ``
184
184
multiple times. If several services share the same ``lock `` service, they
185
185
won't lock each other, use ``LockFactory `` instead.
186
186
You can’t perform that action at this time.
0 commit comments