hbUCPWaitTaskDone

int32_t hbUCPWaitTaskDone(hbUCPTaskHandle_t taskHandle, int32_t timeout);

Wait for task complete or timeout.

  • Parameter

    • [in] taskHandle Task handle pointer.
    • [in] timeout Timeout configuration (in milliseconds).
  • Return Value

    • If the return value is 0, the API is executed successfully, otherwise the execution fails.
Note
  1. timeout > 0 represents the wait time.
  2. timeout <= 0 represents keep waiting until the task is completed.