Fixed pthreads crashes with progressUpdates

This commit is contained in:
SOFe
2016-11-12 18:30:55 +08:00
parent 7861822a0f
commit 8404ce88bd
3 changed files with 16 additions and 7 deletions

View File

@ -78,6 +78,7 @@ class ServerScheduler{
public function scheduleAsyncTask(AsyncTask $task){
$id = $this->nextId();
$task->setTaskId($id);
$task->progressUpdates = new \Threaded;
$this->asyncPool->submitTask($task);
}