Thread
PHP Manual

Thread::getThread

(PECL pthreads >= 0.0.33)

Thread::getThreadImport a Thread created in another context.

说明

final public static ImportedThread Thread::getThread ( string $tid )

Import a Thread created in another context for the purposes of synchronization.

参数

tid

A valid Thread identifier returned by a previous call to Thread::getThreadId().

返回值

An ImportedThread represetning the Thread referenced by tid, if it can be found in the current instance of PHP.


Thread
PHP Manual