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


pthread_getsequence_np

Obtains the thread sequence number.

Syntax

pthread_getsequence_np(
                       thread );
 


Argument Data Type Access

thread opaque pthread_t read


C Binding

#include 

unsigned long pthread_getsequence_np ( pthread_t *thread);

Arguments

thread
Thread whose sequence number is obtained.

Description

This routine obtains the sequence number of the specified thread, which provides a unique identifier for each concurrent thread. Thread sequence numbers are never reused while a thread exists, but may be reused after the thread terminates. The debugger interfaces use this sequence number to identify each thread in commands and in display output.

Return Values

No errors are returned. The function pthread_getsequence_np returns the sequence number of the specified thread. The result is undefined if thread is not a valid thread.

Associated Routines

 
    pthread_create   



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