M_ThreadID_GetFunc
typedef M_ThreadID (*M_ThreadID_GetFunc)( M_Core core,
M_Bool create,
M_XContext *acontext );
|
this function is used to retrieve the current
thread's ID, as well as its specific exception
context when the "acontext" parameter is not NULL
|
input |
mcore |
handle to MLib core
|
create |
when true, the function should try to create a
new exception context for the current thread when
it doesn't already have one. Otherwise, it should
simply return NULL in "ainfo"
|
acontext |
an optional pointer to a
M_XContext
handle. when this parameter is not NULL, then
"*acontext" will receive the address of the
thread-specific exception context.
|
|
return |
current thread's id. NULL in case of failure
|
note |
implementation-specific thread subsystems are
free to use any kind of container to map thread
ids to xcontexts. This ensures that the best
method is always used on a given platform.
if you need to implement this function, take note
that each new thread info block must be
initialised with a call to ?m_thread_info_init,
and finalised with ?m_thread_info_done
|
|