update : 2015.11.03
php.shukuma.com

검색:
 
 
Synchronization

Worker::shutdown

(PECL pthreads >= 2.0.0)

Worker::shutdownSynchronization

설명

public boolean Worker::shutdown ( void )

Shuts down the Worker after executing all the objects previously stacked

인수

이 함수는 인수가 없습니다.

반환값

예제

Example #1 Shutdown the referenced Worker

<?php
$my 
= new Worker();
$my->start();
/* ... */
var_dump($my->shutdown());
/* ... */
?>

위 예제의 출력:

bool(true)