PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PAPI_register_thread Class Reference

Notify PAPI that a thread has 'appeared'. More...

Detailed Description

C Interface:
#include <papi.h>
int PAPI_register_thread (void);

PAPI_register_thread() should be called when the user wants to force PAPI to initialize a thread that PAPI has not seen before.

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.

Return values
PAPI_ENOMEMSpace could not be allocated to store the new thread information.
PAPI_ESYSA system or C library call failed inside PAPI, see the errno variable.
PAPI_ECMPHardware counters for this thread could not be initialized.
See Also
PAPI_unregister_thread
PAPI_thread_id
PAPI_thread_init

The documentation for this class was generated from the following file: