@@ -76,9 +76,9 @@ method can be safely called repeatedly, even if the lock is already acquired.
76
76
Serializing Locks
77
77
------------------
78
78
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
80
80
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::
82
82
83
83
use Symfony\Component\Lock\Key;
84
84
use Symfony\Component\Lock\Lock;
@@ -92,13 +92,12 @@ to continue the job in an other process within the same lock.::
92
92
.. note ::
93
93
94
94
Don't forget to disable the autoRelease to avoid releasing the lock when
95
- the destructor will be called.
95
+ the destructor is called.
96
96
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.
102
101
103
102
.. _lock-blocking-locks :
104
103
0 commit comments