Documentación offline PHP master

Thread::isJoined

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

Thread::isJoined

Detección de estado

Descripción#

public Thread::isJoined(): bool
```php

Indica si el Thread referenciado ha sido unido.

## Parámetros

Esta función no contiene ningún parámetro.

## Valores devueltos

Esta función retorna `true` en caso de éxito o `false` si ocurre un error.

## Ejemplos

Detecta el estado del Thread referenciado
synchronized(function($thread){ if (!$thread->done) $this->wait(); }, $this); } } $my = new My(); $my->start(); var_dump($my->isJoined()); $my->synchronized(function($thread){ $thread->done = true; $thread->notify(); }, $my); ?>

```php

El ejemplo anterior mostrará:

bool(false)