1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-27 04:44:56 +01:00

Fix missed variable rename

This commit is contained in:
Aaron Piotrowski 2015-08-31 13:49:26 -05:00
parent 1ba162da36
commit a78ddc6ca8
2 changed files with 5 additions and 5 deletions

View File

@ -31,11 +31,11 @@ class Semaphore extends \Threaded
/**
* Creates a new semaphore with a given number of locks.
*
* @param int $maxLocks The maximum number of locks that can be acquired from the semaphore.
* @param int $locks The maximum number of locks that can be acquired from the semaphore.
*/
public function __construct($maxLocks)
public function __construct($locks)
{
$this->locks = (int) $maxLocks;
$this->locks = (int) $locks;
if ($this->locks < 1) {
$this->locks = 1;
}

View File

@ -21,9 +21,9 @@ class Semaphore implements SemaphoreInterface
/**
* Creates a new semaphore with a given number of locks.
*
* @param int $maxLocks The maximum number of locks that can be acquired from the semaphore.
* @param int $locks The maximum number of locks that can be acquired from the semaphore.
*/
public function __construct($maxLocks)
public function __construct($locks)
{
$this->semaphore = new Internal\Semaphore($locks);
}