Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Threads Library Functionspthread_self(3THR)


NAME

 pthread_self - get calling thread's ID

SYNOPSIS

 
cc -mt [ flag... ] file... -lpthread [ -lrt library... ]

#include <pthread.h> 
pthread_t pthread_self(void);

DESCRIPTION

 

The pthread_self() function returns the thread ID of the calling thread.

ERRORS

 

No errors are defined.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

pthread_create(3THR), pthread_equal(3THR), attributes(5), standards(5)


SunOS 5.9Go To TopLast Changed 9 May 1998

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.