dlh_test_server/vendor/topthink/think-swoole/src/helpers.php

21 lines
339 B
PHP
Raw Normal View History

2024-08-03 10:04:14 +08:00
<?php
if (!function_exists('swoole_cpu_num')) {
function swoole_cpu_num(): int
{
return 1;
}
}
if (!defined('SWOOLE_SOCK_TCP')) {
define('SWOOLE_SOCK_TCP', 1);
}
if (!defined('SWOOLE_PROCESS')) {
define('SWOOLE_PROCESS', 3);
}
if (!defined('SWOOLE_HOOK_ALL')) {
define('SWOOLE_HOOK_ALL', 1879048191);
}