예제 #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);