The Threaded class
(PECL pthreads >= 2.0.0)
はじめに
Threaded objects form the basis of pthreads ability to execute user code in parallel; they expose synchronization methods and various useful interfaces.
Threaded objects, most importantly, provide implicit safety for the programmer; all operations on the object scope are safe.
クラス概要
/* メソッド */
}目次
- Threaded::chunk — Manipulation
- Threaded::count — Manipulation
- Threaded::extend — Runtime Manipulation
- Threaded::isRunning — State Detection
- Threaded::isTerminated — State Detection
- Threaded::merge — Manipulation
- Threaded::notify — Synchronization
- Threaded::notifyOne — Synchronization
- Threaded::pop — Manipulation
- Threaded::run — Execution
- Threaded::shift — Manipulation
- Threaded::synchronized — Synchronization
- Threaded::wait — Synchronization
+add a note
User Contributed Notes 2 notes
derkontrollfreak+php at gmail dot com ¶
9 years ago
> Threaded objects, most importantly, provide implicit safety for the programmer; all operations on the object scope are safe.
However, this comes with a trade-off: Operations on the instance scope are slower than on plain PHP objects.
Static properties are not affected as they are thread-local.
jtbibliomania at gmail dot com ¶
5 years ago
It's worth mentioning here that, since v2.0.0, 'Stackable' class was an alias for 'Threaded' class but has been removed since.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google