? parallel\Sync::__invoke
簡介 ?
Bejson.com
PHP Manual
進(jìn)程控制擴(kuò)展
pthreads
pthreads
簡介
安裝/配置
需求
安裝
運(yùn)行時(shí)配置
預(yù)定義常量
Threaded
— Threaded 類
Threaded::chunk
— 操作
Threaded::count
— 操作
Threaded::extend
— Runtime Manipulation
Threaded::isRunning
— 狀態(tài)檢測
Threaded::isTerminated
— 狀態(tài)檢測
Threaded::merge
— 操作
Threaded::notify
— 同步控制
Threaded::notifyOne
— Synchronization
Threaded::pop
— 操作
Threaded::run
— 執(zhí)行
Threaded::shift
— Manipulation
Threaded::synchronized
— 同步控制
Threaded::wait
— Synchronization
Thread
— Thread 類
Thread::getCreatorId
— 識別
Thread::getCurrentThread
— 識別
Thread::getCurrentThreadId
— 識別
Thread::getThreadId
— 識別
Thread::isJoined
— 狀態(tài)監(jiān)測
Thread::isStarted
— 狀態(tài)檢測
Thread::join
— 同步
Thread::start
— 執(zhí)行
Worker
— Worker 類
Worker::collect
— Collect references to completed tasks
Worker::getStacked
— 獲取剩余的棧大小
Worker::isShutdown
— 狀態(tài)檢測
Worker::shutdown
— 關(guān)閉 Worker
Worker::stack
— 將要執(zhí)行的任務(wù)入棧
Worker::unstack
— 將要執(zhí)行的任務(wù)出棧
Collectable
— The Collectable interface
Collectable::isGarbage
— Determine whether an object has been marked as garbage
Pool
— Pool 類
Pool::collect
— 回收已完成任務(wù)的引用
Pool::__construct
— 創(chuàng)建新的 Worker 對象池
Pool::resize
— 改變 Pool 對象的可容納 Worker 對象的數(shù)量
Pool::shutdown
— 停止所有的 Worker 對象
Pool::submit
— 提交對象以執(zhí)行
Pool::submitTo
— 提交一個(gè)任務(wù)到特定的 Worker 以執(zhí)行
Volatile
— The Volatile class