mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Fix missed variable rename
This commit is contained in:
parent
1ba162da36
commit
a78ddc6ca8
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user