Blame man/man3/PAPI_thread_id.3

Packit 577717
.TH "PAPI_thread_id" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit 577717
.ad l
Packit 577717
.nh
Packit 577717
.SH NAME
Packit 577717
PAPI_thread_id \- 
Packit 577717
.PP
Packit 577717
Get the thread identifier of the current thread\&.  
Packit 577717
Packit 577717
.SH SYNOPSIS
Packit 577717
.br
Packit 577717
.PP
Packit 577717
.SH "Detailed Description"
Packit 577717
.PP 
Packit 577717
Packit 577717
.PP
Packit 577717
.nf
Packit 577717
@retval PAPI_EMISC 
Packit 577717
    is returned if there are no threads registered.
Packit 577717
@retval -1 
Packit 577717
    is returned if the thread id function returns an error. 
Packit 577717
Packit 577717
This function returns a valid thread identifier. 
Packit 577717
It calls the function registered with PAPI through a call to 
Packit 577717
PAPI_thread_init().
Packit 577717
Packit 577717
.fi
Packit 577717
.PP
Packit 577717
.PP
Packit 577717
.PP
Packit 577717
.nf
Packit 577717
unsigned long tid;
Packit 577717
Packit 577717
if ((tid = PAPI_thread_id()) == (unsigned long int)-1 )
Packit 577717
    exit(1);
Packit 577717
Packit 577717
printf("Initial thread id is: %lu\n", tid );
Packit 577717
 *  
Packit 577717
.fi
Packit 577717
.PP
Packit 577717
 
Packit 577717
.PP
Packit 577717
\fBSee Also:\fP
Packit 577717
.RS 4
Packit 577717
\fBPAPI_thread_init\fP 
Packit 577717
.RE
Packit 577717
.PP
Packit 577717
Packit 577717
Packit 577717
.SH "Author"
Packit 577717
.PP 
Packit 577717
Generated automatically by Doxygen for PAPI from the source code\&.