CORBA 2.3.7 Programmer's Reference
Disassociates the thread pp_tid from the creator thread. Returns zero if operation was
successful. You use this when the creator is not interested in the termination of a thread or any
associated results.
static int join( Id_ptr pp_tid, void **ppp_result )
Blocks the current thread until the thread pp_tid completes. The thread result is passed back in
ppp_result (pointer to a void*). Returns zero if the operation was successful.
static int self_id()
Returns an internal thread number.
static int specific_key_create( int &pr_new_key, Dtor_Function )
Creates a key for thread-specific data, and associates a destructor function with that type of data.
static int specific_set( int pv_key, const void * pp_data )
Sets this threads specific data for pv_key to pp_data.
static void exit( int pv_value )
Performs the work required to terminate a thread function.
static void set_trace( bool pv_trace )
Allows tracing to be enabled or disabled programmatically.
static void * specific_get ( int pv_key )
Returns any thread-specific data for this thread and pv_key.
static void yield( void )
Places the current thread at the end of the ready list and dispatches the next ready thread.
class Mutex
Wraps mutual exclusion (mutex) functions and data as an object.
API Methods
Mutex()
Creates a mutex object.
~Mutex()
Destructor for the current mutex object.
int lock()
Blocks the current thread until the mutex can be locked. Returns zero if successful.
int try_lock()
Attempts to lock the mutex. If unable to lock the mutex, returns immediately with non-zero result.