Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-A8900795-35FF-4253-B0E2-396225574C59
Visible to Intel only — GUID: GUID-A8900795-35FF-4253-B0E2-396225574C59
wait
Stops execution of current thread.
Syntax
int wait(void) |
int wait(unsigned int operation_id) |
Description
Method wait(void) stops execution of the current thread until all the asynchronous operations are completed.
Method wait(operation_id) stops execution of the current thread until the operation identified by operation_id is completed.
Return Values
-1 : On error during queue execution
Call the get_last_error() method to check the error code.