Blame man/man3/PAPI_register_thread.3

Packit Service a1973e
.TH "PAPI_register_thread" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit Service a1973e
.ad l
Packit Service a1973e
.nh
Packit Service a1973e
.SH NAME
Packit Service a1973e
PAPI_register_thread \- 
Packit Service a1973e
.PP
Packit Service a1973e
Notify PAPI that a thread has 'appeared'\&.  
Packit Service a1973e
Packit Service a1973e
.SH SYNOPSIS
Packit Service a1973e
.br
Packit Service a1973e
.PP
Packit Service a1973e
.SH "Detailed Description"
Packit Service a1973e
.PP 
Packit Service a1973e
Packit Service a1973e
.PP
Packit Service a1973e
\fBC Interface:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
#include <\fBpapi\&.h\fP> 
Packit Service a1973e
.br
Packit Service a1973e
int \fBPAPI_register_thread\fP (void);
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_register_thread()\fP should be called when the user wants to force PAPI to initialize a thread that PAPI has not seen before\&.
Packit Service a1973e
.PP
Packit Service a1973e
Usually this is not necessary as PAPI implicitly detects the thread when an eventset is created or other thread local PAPI functions are called\&. However, it can be useful for debugging and performance enhancements in the run-time systems of performance tools\&.
Packit Service a1973e
.PP
Packit Service a1973e
\fBReturn values:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fIPAPI_ENOMEM\fP Space could not be allocated to store the new thread information\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fIPAPI_ESYS\fP A system or C library call failed inside PAPI, see the errno variable\&. 
Packit Service a1973e
.br
Packit Service a1973e
\fIPAPI_ECMP\fP Hardware counters for this thread could not be initialized\&.
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
\fBSee Also:\fP
Packit Service a1973e
.RS 4
Packit Service a1973e
\fBPAPI_unregister_thread\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_thread_id\fP 
Packit Service a1973e
.PP
Packit Service a1973e
\fBPAPI_thread_init\fP 
Packit Service a1973e
.RE
Packit Service a1973e
.PP
Packit Service a1973e
Packit Service a1973e
Packit Service a1973e
.SH "Author"
Packit Service a1973e
.PP 
Packit Service a1973e
Generated automatically by Doxygen for PAPI from the source code\&.