Thread
PHP Manual

Thread::getThreadId

(PECL pthreads >= 0.0.33)

Thread::getThreadIdGet the identifer for a Thread

说明

final public long Thread::getThreadId ( void )

Get the identifier for the refeerenced Thread

参数

此函数没有参数。

返回值

The return value can subsequently be used in a call to Thread::getThread() for the purposes of importing into another context.


Thread
PHP Manual