Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlDisk_WaitForCompletion Function
PHT_VIRTUAL_DISK

Waits for the background thread to finish executing before returning control to the client.

Syntax
PRL_RESULT PrlDisk_WaitForCompletion(
    const PRL_HANDLE Handle
);
File

PrlDisk.h

Parameters

Handle
A handle of type PHT_VIRTUAL_DISK identifying the virtual disk.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid argument values. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

Use this function with any of the PHT_VIRTUAL_DISK disk functions that can be executed asynchronously. When a function is called asynchronously, it returns immediately. The actual task that was initiated by the call is performed in the background thread. By calling the PrlDisk_WaitForCompletion function, you will suspend the main thread execution until the background thread is finished processing the task.

Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.