thr_self(3thread)
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(3thread),
getuid(2),
thr_create(3thread)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.