Skip to content

Commit 61e30b3

Browse files
committed
Tweaks
1 parent 50d7c2b commit 61e30b3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/lock.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ method can be safely called repeatedly, even if the lock is already acquired.
7676
Serializing Locks
7777
------------------
7878

79-
The ``Key`` contains the state of the ``Lock`` and can be serialized. This
79+
The ``Key`` contains the state of the ``Lock`` and can be serialized. This
8080
allows the user to begin a long job in a process by acquiring the lock, and
81-
to continue the job in an other process within the same lock.::
81+
continue the job in an other process using the same lock::
8282

8383
use Symfony\Component\Lock\Key;
8484
use Symfony\Component\Lock\Lock;
@@ -92,13 +92,12 @@ to continue the job in an other process within the same lock.::
9292
.. note::
9393

9494
Don't forget to disable the autoRelease to avoid releasing the lock when
95-
the destructor will be called.
95+
the destructor is called.
9696

97-
All stores are not compatible with serialization and cross-process locking:
98-
For instance the kernel will automatically releases Semaphores acquires by the
99-
:ref:`SemaphoreStore <lock-store-semaphore>` store.
100-
Wen a lock is acquired with such store, and hte application try to serialize
101-
the key, and exception will be thrown
97+
Not all stores are compatible with serialization and cross-process locking:
98+
for example, the kernel will automatically release semaphores acquired by the
99+
:ref:`SemaphoreStore <lock-store-semaphore>` store. If you use an incompatible
100+
store, an exception will be thrown when the application tries to serialize the key.
102101

103102
.. _lock-blocking-locks:
104103

0 commit comments

Comments
 (0)