代码初始化
This commit is contained in:
26
addons/crontab/library/SimpleFork/SinglePool.php
Normal file
26
addons/crontab/library/SimpleFork/SinglePool.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Jenner <hypxm@qq.com>
|
||||
* @blog http://www.huyanping.cn
|
||||
* @license https://opensource.org/licenses/MIT MIT
|
||||
* @datetime: 2015/11/19 21:13
|
||||
*/
|
||||
|
||||
namespace Jenner\SimpleFork;
|
||||
|
||||
|
||||
/**
|
||||
* Only one process will be started at the same time
|
||||
*
|
||||
* @package Jenner\SimpleFork
|
||||
*/
|
||||
class SinglePool extends FixedPool
|
||||
{
|
||||
/**
|
||||
* SinglePool constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user