(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
类摘要
Swoole\Process
{
public static void alarm
(
integer $interval_usec
)
public void close
(
void
)
public static void daemon
([
boolean $nochdir
[,
boolean $noclose
]] )
public ReturnType exec
(
string $exec_file
,
string $args
)
public void exit
([
string $exit_code
] )
public static void kill
(
integer $pid
[,
string $signal_no
] )
public void name
(
string $process_name
)
public mixed pop
([
integer $maxsize
] )
public boolean push
(
string $data
)
public string read
([
integer $maxsize
] )
public void start
(
void
)
public boolean useQueue
(
integer $key
[,
integer $mode
] )
public static array wait
([
boolean $blocking
] )
public integer write
(
string $data
)
}
预定义常量
Swoole\Process::IPC_NOWAIT
-