update : 2015.11.03
php.shukuma.com검색:
|
The Worker class(PECL pthreads >= 2.0.0) 소개Worker Threads have a persistent context, as such should be used over Threads in most cases. When a Worker is started, the run method will be executed, but the Thread will not leave until one of the following conditions are met:
This means the programmer can reuse the context throughout execution; placing objects on the stack of the Worker will cause the Worker to execute the stacked objects run method. Warning
The programmer must retain references to stacked objects until they are executed or unstacked; the Pool class provides a higher level abstraction of the Worker functionality and manages references for the programmer. 클래스 개요/* 메소드 */
/* 상속된 메소드 */
}Table of Contents
|