NAME
PAPI_register_thread - Notify PAPI of the existence of a new thread
Synopsis Description Arguments Return Values Errors Examples Authors See Also
#include <papi.h> int PAPI_register_thread (void);
When a new thread is created of which PAPI needs to be aware, a call to this function will register it. PAPI looks it up in its internal thread list, and adds it if it is not found. There is no Fortran eqivalent to this call.
On success, this function returns PAPI_OK. On error, a non-zero error code is returned.
PAPI_ENOMEM Space could not be allocated to store the new thread information.
The PAPI Team. See them at the PAPI Web Site: http://icl.cs.utk.edu/projects/papi
PAPI_thread_init (3), PAPI_thread_id (3), PAPI_get_thr_specific (3), PAPI_set_thr_specific (3), PAPI_register_thread (3)