Lines Matching refs:task
1033 * @param pProgressAsync Progress object of asynchronous task running in background.
1171 * Starts the worker thread for the task.
1191 return Appliance::i_setErrorStatic(E_FAIL, Utf8StrFmt("Could not create OVF task thread (%Rrc)\n", vrc));
1206 std::auto_ptr<TaskOVF> task(static_cast<TaskOVF*>(pvUser));
1207 AssertReturn(task.get(), VERR_GENERAL_FAILURE);
1209 Appliance *pAppliance = task->pAppliance;
1212 LogFlowFunc(("Appliance %p taskType=%d\n", pAppliance, task->taskType));
1216 switch (task->taskType)
1219 if (task->locInfo.storageType == VFSType_File)
1220 taskrc = pAppliance->i_readFS(task.get());
1221 else if (task->locInfo.storageType == VFSType_S3)
1223 taskrc = pAppliance->i_readS3(task.get());
1230 if (task->locInfo.storageType == VFSType_File)
1231 taskrc = pAppliance->i_importFS(task.get());
1232 else if (task->locInfo.storageType == VFSType_S3)
1234 taskrc = pAppliance->i_importS3(task.get());
1241 if (task->locInfo.storageType == VFSType_File)
1242 taskrc = pAppliance->i_writeFS(task.get());
1243 else if (task->locInfo.storageType == VFSType_S3)
1245 taskrc = pAppliance->i_writeS3(task.get());
1252 task->rc = taskrc;
1254 if (!task->pProgress.isNull())
1255 task->pProgress->i_notifyComplete(taskrc);