Documentation Home
>
Multithreaded Programming Guide
>
ChapterĀ 2 Basic Threads Programming
>
The Pthreads Library
>
Getting the Thread Identifier
> pthread_self Syntax
Multithreaded Programming Guide
Previous
: Global and Private Thread-Specific Data Example
Next
: pthread_self Return Values
pthread_self
Syntax
pthread_t pthread_self(void);
#include <pthread.h> pthread_t
tid
;
tid
= pthread_self();
Previous
: Global and Private Thread-Specific Data Example
Next
: pthread_self Return Values
© 2010, Oracle Corporation and/or its affiliates