logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

PAPI_register_thread - Notify PAPI that a thread has 'appeared'.

Author

       Generated automatically by Doxygen for PAPI from the source code.

Version 7.1.0.0                                  Thu Dec 14 2023                         PAPI_register_thread(3)

Detailed Description

CInterface:
           #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.

       ReturnvaluesPAPI_ENOMEM Space could not be allocated to store the new thread information.
           PAPI_ESYS A system or C library call failed inside PAPI, see the errno variable.
           PAPI_ECMP Hardware counters for this thread could not be initialized.

       SeealsoPAPI_unregister_threadPAPI_thread_idPAPI_thread_init

Name

       PAPI_register_thread - Notify PAPI that a thread has 'appeared'.

Synopsis

See Also