Collapse All
Parallels C API Reference Guide
PrlDisk_WaitForCompletion Function
PrlDisk.h 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
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 © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!