Skip to content

Commit

Permalink
优化注释、测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Jul 29, 2019
1 parent 01d8f59 commit 8ed6e1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Util/AtomicManager.php
Expand Up @@ -179,7 +179,7 @@ public static function wait(string $name, float $timeout = -1)
* 被唤醒的进程返回后,会将原子计数设置为0,这时可以再次调用wakeup唤醒其他正在wait的进程
* @param string $name 原子计数对象名称
* @param integer $n
* @return void
* @return bool
*/
public static function wakeup(string $name, int $n = 1)
{
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/Component/config/config.php
Expand Up @@ -216,7 +216,9 @@
'list' => [
'redis' => [
'class' => 'RedisLock',
'poolName' => 'redis_test',
'options' => [
'poolName' => 'redis_test',
],
],
'atomic' => [
'class' => 'AtomicLock',
Expand Down

0 comments on commit 8ed6e1d

Please sign in to comment.