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 Functionsthr_self(3THR)


NAME

 thr_self - get calling thread's ID

SYNOPSIS

 
cc -mt [ flag... ] file...[ library... ]
#include <thread.h> 
thread_t thr_self(void));
 typedefunsigned int thread_t);

DESCRIPTION

 

thr_self() 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

 

thr_create(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.