 |
PK_THREAD_set_id |
|
PK_ERROR_code_t PK_THREAD_set_id
(
--- received arguments ---
PK_THREAD_id_t thread_id, --- ID for calling thread
const PK_THREAD_set_id_o_t *options, --- options structure
--- returned arguments ---
PK_THREAD_set_id_r_t *const results --- results structure
)
This function stores the given thread ID in the calling thread.
This value will persist until a different value is set.
If Parasolid creates internal threads from the calling thread, the thread ID
will be inherited by the internal threads.
This function may be invoked from within an application callback function. The
value of the ID in the calling thread will be restored to the previously set
value when the callback has finished executing and the calling thread has
re-entered Parasolid.