Thread::isJoined

(PECL pthreads >= 2.0.0) State Detection public boolean Thread::isJoined ( void ) Tell if the referenced Thread has been joined Returns: A boolean indication of state Examples: Detect the state of the referenced Thread <?php class My extends Thread {     public function run() {         $this->synchronized(functio

Thread::globally

(PECL pthreads >= 2.0.1) Execution public static mixed Thread::globally ( void ) Will execute a Callable in the global scope Returns: The return value of the Callable Examples: Execute in the global scope <?php class My extends Thread {     public function run() {         global $std;                  Thread::global

Thread::getThreadId

(PECL pthreads >= 2.0.0) Identification public integer Thread::getThreadId ( void ) Will return the identity of the referenced Thread Returns: A numeric identity Examples: Return the identity of the referenced Thread <?php class My extends Thread {     public function run() {         printf("%s is Thread #%lu\n", __

Thread::getCurrentThreadId

(PECL pthreads >= 2.0.0) Identification public static integer Thread::getCurrentThreadId ( void ) Will return the identity of the currently executing Thread Returns: A numeric identity Examples: Return the identity of the currently executing Thread <?php class My extends Thread {     public function run() {         

Thread::getCurrentThread

(PECL pthreads >= 2.0.0) Identification public static Thread Thread::getCurrentThread ( void ) Return a reference to the currently executing Thread Returns: An object representing the currently executing Thread Examples: Return the currently executing Thread <?php class My extends Thread {     public function run() 

Thread::getCreatorId

(PECL pthreads >= 2.0.0) Identification public integer Thread::getCreatorId ( void ) Will return the identity of the Thread that created the referenced Thread Returns: A numeric identity Examples: Return the identity of the Thread or Process that created the referenced Thread <?php class My extends Thread {     publ

Thread::detach

(PECL pthreads >= 2.0.0) Execution public void Thread::detach ( void ) Detaches the referenced Thread from the calling context, dangerous! Returns: This method can cause undefined, unsafe behaviour. It should not usually be used, it is present for completeness and advanced use cases.

Threaded::wait

(PECL pthreads >= 2.0.0) Synchronization public boolean Threaded::wait ([ integer $timeout ] ) Will cause the calling context to wait for notification from the referenced object Parameters: timeout An optional timeout in microseconds Returns: A boolean indication of success Examples:

Threaded::unlock

(PECL pthreads >= 2.0.0) Synchronization public boolean Threaded::unlock ( void ) Unlock the referenced objects storage for the calling context Returns: A boolean indication of success Examples: Locking the property table of a threaded object <?php class My extends Thread {     public function run() {         var_du

Threaded::synchronized

(PECL pthreads >= 2.0.0) Synchronization public mixed Threaded::synchronized ( Closure $block [, mixed $... ] ) Executes the block while retaining the referenced objects synchronization lock for the calling context Parameters: block The block of code to execute ... Variable length list of arguments to use as function arguments to the