示例#1
0
文件: test.php 项目: k1ic/PHP-Thread
<?php

//declare(ticks = 1);
include "ThreadTest.php";
$threads[] = new ThreadTest();
$threads[] = new IChildTest();
$main = new Thread_Main();
$main->run($threads);
示例#2
0
文件: test2.php 项目: k1ic/PHP-Thread
<?php

//declare(ticks = 1);
include "ThreadTest.php";
include "Config.php";
define('DEBUG', 1);
$configFile = dirname(__FILE__) . '/testThread.ini';
$config = new Thread_Config($configFile);
$main = new Thread_Main();
$main->runWithConfig($config);