[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


tis_self

Obtains the identifier of the current thread.

Syntax

tis_self(
         void);

C Binding

#include 

pthread_t tis_self (void);

Arguments

None

Description

This routine allows a thread to obtain its own thread identifier.

This value becomes meaningless when the thread is deleted.

The initial thread in a process may "change identity" when thread system initialization completes (that is, when the DECthreads library is loaded).

Return Values

Returns the thread identifier of the caller.

Associated Routines

   pthread_create



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]