DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_self(THREAD)


thr_self -- get thread identifier of the calling thread

Synopsis

   cc [options] -Kthread file
   

#include <thread.h>

thread_t thr_self(void);

Description

thr_self returns the identifier of the calling thread.

Return values

thr_self returns the identifier of the calling thread.

Errors

None. This function always succeeds.

References

Intro(THREAD), getuid(S), thr_create(THREAD)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005