rpc_sm_get_thread_handle(3rpc)Gets a thread handle for the stub memory management environment Synopsis
#include <rpc.h> rpc_sm_thread_handle_t rpc_sm_get_thread_handle( unsigned32 *status); Parameters Output
status
Description When multiple threads call rpc_sm_allocate and rpc_sm_free to manage the same memory, they must share the same thread handle. The thread that established the stub memory management environment calls rpc_sm_get_thread_handle to get a thread handle before spawning new threads that will manage the same memory. The spawned threads then call rpc_sm_set_thread_handle with the handle provided by the parent thread.
Application Note: A thread may also use rpc_sm_get_thread_handle and rpc_sm_set_thread_handle to save and restore its memory management environment.
Return Values Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
Related Information rpc_sm_set_thread_handle(3rpc)
|