Pool::submitTo
Pool::submitTo
(PECL pthreads >= 2.0.0)
Pool::submitTo — Submits a task to a specific worker for execution
Description
public int Pool::submitTo ( int $worker , Threaded $task )
Submit a task to the specified worker in the pool. The workers are indexed from 0, and will only exist if the pool has needed to create them (since threads are lazily spawned).
Parameters
-
worker
-
The worker to stack the task onto, indexed from 0.
-
登录查看完整内容