在线文档教程
PHP
处理控制 | Process Control

Thread::detach

Thread::detach

(PECL pthreads < 3.0.0)

Thread::detach — Execution

Warning

This method has been removed in pthreads v3.

Description

public void Thread::detach ( void )

Detaches the referenced Thread from the calling context, dangerous!

Warning

This method can cause undefined, unsafe behaviour. It should not usually be used, it is present for completeness and advanced use cases.

Parameters

This function has no parameters.

Return Values

← Thread

Thread::getCreatorId →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/thread.detach.php