mtapi_cpp_wait_task-snippet.h 172 Bytes
Newer Older
Michael Schmid committed
1 2 3 4 5
    mtapi_status_t status = task.Wait(MTAPI_INFINITE);
    if (status != MTAPI_SUCCESS) {
      printf("task failed with error: %d\n\n", status);
      exit(status);
    }