logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PAPI_list_threads - List the registered thread ids.

Author

       Generated automatically by Doxygen for PAPI from the source code.

Version 7.1.0.0                                  Thu Dec 14 2023                            PAPI_list_threads(3)

Detailed Description

PAPI_list_threads() returns to the caller a list of all thread IDs known to PAPI.

       This call assumes an initialized PAPI library.

       CInterface
           #include <papi.h>
           int PAPI_list_threads(PAPI_thread_id_t*tids,int*number);

       Parameters*tids -- A pointer to a preallocated array. This may be NULL to only return a count of threads. No
           more than *number codes will be stored in the array.
           *number -- An input and output parameter.
            Input specifies the number of allocated elements in *tids (if non-NULL) and output specifies the
           number of threads.

       ReturnvaluesPAPI_OK The call returned successfully.
           PAPI_EINVAL *number has an improper value

       SeealsoPAPI_get_thr_specificPAPI_set_thr_specificPAPI_register_threadPAPI_unregister_threadPAPI_thread_initPAPI_thread_id

Name

       PAPI_list_threads - List the registered thread ids.

Synopsis

See Also