The ddpi_thread_set_id operation assigns a new
ID to a given Ddpi_Thread object.
Prototype
int ddpi_thread_set_id(
Ddpi_Thread thread,
Ddpi_THID new_id,
Ddpi_Error* error);
Parameters
- thread
- Input. This accepts the Ddpi_Thread object.
- new_id
- Input. This accepts the new thread ID.
- error
- See The libddpi error parameter.
Return values
- DW_DLV_OK
- Returned upon successful acceptance of the new thread ID.
- DW_DLV_NO_ENTRY
- Never returned.
- DW_DLV_ERROR
- Returned if:
- thread is NULL
- The Ddpi_Info object associated with thread is
NULL.