mirror of
https://github.com/danog/parallel.git
synced 2025-01-22 14:01:14 +01:00
Documentation fixes
This commit is contained in:
parent
ef5ab2f575
commit
8d9e6200a7
@ -11,13 +11,13 @@ use Icicle\Coroutine;
|
|||||||
* system's implementation of file creation operations. Use this implementation
|
* system's implementation of file creation operations. Use this implementation
|
||||||
* only if no other mutex types are available.
|
* only if no other mutex types are available.
|
||||||
*
|
*
|
||||||
* This implementation avoids using [flock()](http://php.net/manual/en/function.fopen.php)
|
* This implementation avoids using [flock()](http://php.net/flock)
|
||||||
* because flock() is known to have some atomicity issues on some systems. In
|
* because flock() is known to have some atomicity issues on some systems. In
|
||||||
* addition, flock() does not work as expected when trying to lock a file
|
* addition, flock() does not work as expected when trying to lock a file
|
||||||
* multiple times in the same process on Linux. Instead, exclusive file creation
|
* multiple times in the same process on Linux. Instead, exclusive file creation
|
||||||
* is used to create a lock file, which is atomic on most systems.
|
* is used to create a lock file, which is atomic on most systems.
|
||||||
*
|
*
|
||||||
* @see http://php.net/manual/en/function.fopen.php
|
* @see http://php.net/fopen
|
||||||
*/
|
*/
|
||||||
class FileMutex implements MutexInterface
|
class FileMutex implements MutexInterface
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ interface SemaphoreInterface extends \Countable
|
|||||||
*
|
*
|
||||||
* Acquires a lock from the semaphore asynchronously.
|
* Acquires a lock from the semaphore asynchronously.
|
||||||
*
|
*
|
||||||
* If there are one or more locks available, this function resolve imsmediately with a lock and the lock count is
|
* If there are one or more locks available, this function resolves immediately with a lock and the lock count is
|
||||||
* decreased. If no locks are available, the semaphore waits asynchronously for a lock to become available.
|
* decreased. If no locks are available, the semaphore waits asynchronously for a lock to become available.
|
||||||
*
|
*
|
||||||
* @return \Generator Resolves with a lock object when the acquire is successful.
|
* @return \Generator Resolves with a lock object when the acquire is successful.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user