1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-22 14:01:14 +01:00

Documentation fixes

This commit is contained in:
Stephen Coakley 2015-10-16 23:32:01 -05:00
parent ef5ab2f575
commit 8d9e6200a7
2 changed files with 3 additions and 3 deletions

View File

@ -11,13 +11,13 @@ use Icicle\Coroutine;
* system's implementation of file creation operations. Use this implementation
* 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
* 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
* 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
{

View File

@ -29,7 +29,7 @@ interface SemaphoreInterface extends \Countable
*
* 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.
*
* @return \Generator Resolves with a lock object when the acquire is successful.