La classe Threaded
(PECL pthreads >= 2.0.0)
Introduction
Les objets Threaded sont la base de pthreads pour exécuter du code de facon asynchrone; ils exposent et inclus des méthodes de synchronisation ainsi que diverses interfaces utiles.
Les objets Threaded fournissent une sécurité native pour le développeur; toutes les opérations sont thread-safe dans le scope de l'objet.
Synopsis de la classe
/* Méthodes */
}Sommaire
- Threaded::chunk — Manipulation
- Threaded::count — Manipulation
- Threaded::extend — Manipulation pendant l'exécution
- Threaded::from — Création
- Threaded::getTerminationInfo — Détection d'erreur
- Threaded::isRunning — Détection de statut
- Threaded::isTerminated — Détection de statut
- Threaded::isWaiting — Détection de statut
- Threaded::lock — Synchronisation
- Threaded::merge — Manipulation
- Threaded::notify — Synchronisation
- Threaded::pop — Manipulation
- Threaded::run — Exécution
- Threaded::shift — Manipulation
- Threaded::synchronized — Synchronisation
- Threaded::unlock — Synchronisation
- Threaded::wait — Synchronisation