 |
PK_THREAD_ask_id |
|
PK_ERROR_code_t PK_THREAD_ask_id
(
--- returned arguments ---
PK_THREAD_id_t *const thread_id, --- ID of calling thread
PK_THREAD_id_t *const parasolid_id, --- unused (optional)
PK_LOGICAL_t *const is_subthread --- whether called from internal thread
--- (optional)
)
This function returns the thread ID of the calling thread as set by
PK_THREAD_set_id.
If no value has been set by PK_THREAD_set_id, 'thread_id' will be returned with
a value of PK_THREAD_id_null.
The return argument 'parasolid_id' is currently unused and optional. If it is
set to a non-NULL value, a value of PK_THREAD_id_null will be returned. It is
provided to support future enhancements.
The return argument 'is_subthread' is optional. If it is set to a non-NULL
value, it will be used to return whether the calling thread is an internal
Parasolid thread rather than that of the application (see PK_SESSION_set_smp).