Intel® C++ Compiler 16.0 User and Reference Guide
Stops execution of current thread.
int wait(void) |
int wait(unsigned int operation_id) |
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.
-1 : On error during queue execution
Call the get_last_error() method to check the error code.