pthreads Thread::isStarted
(PECL pthreads >= 2.0.0)
Thread::isStarted — State Detection
설명
public Thread::isStarted(): bool
참조된 스레드가 시작되었는지 확인
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
성공하면 true
를, 실패하면 false
를 반환합니다.
Examples
예제 #1 참조된 스레드가 시작되었는지 확인
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>
위의 예는 다음을 출력합니다.
bool(true)