|
NAMEthr_self —
return thread identifier for the calling thread
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/thr.h>
int
DESCRIPTIONThethr_self () system call stores the system-wide thread
identifier for the current kernel-scheduled thread in the variable pointed by
the argument id.
The thread identifier is an integer in the range from
RETURN VALUESIf successful,thr_self () will return zero, otherwise -1
is returned, and errno is set to indicate the error.
ERRORSThethr_self () operation may return the following
errors:
SEE ALSO_umtx_op(2), thr_exit(2), thr_kill(2), thr_kill2(2), thr_new(2), thr_set_name(2), pthread_getthreadid_np(3), pthread_self(3)STANDARDSThethr_self () system call is non-standard and is used
by 1:1 Threading Library (libthr, -lthr) to implement
IEEE Std 1003.1-2001 (“POSIX.1”)
pthread(3)
functionality.
HISTORYThethr_self () system call first appeared in
FreeBSD 5.2.
Visit the GSP FreeBSD Man Page Interface. |