table of contents
other versions
- bookworm 7.0.0-2
- testing 7.1.0-5+b1
- unstable 7.1.0-5+b1
- experimental 7.2.0~b1-1
PAPI_list_threads(3) | PAPI | PAPI_list_threads(3) |
NAME¶
PAPI_list_threads - List the registered thread ids.
SYNOPSIS¶
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.
C Interface
#include <papi.h>
int PAPI_list_threads(PAPI_thread_id_t *tids, int * number );
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.
*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.
Return values
PAPI_OK The call returned successfully.
PAPI_EINVAL *number has an improper value
PAPI_EINVAL *number has an improper value
See also
PAPI_get_thr_specific
PAPI_set_thr_specific
PAPI_register_thread
PAPI_unregister_thread
PAPI_thread_init PAPI_thread_id
Author¶
Generated automatically by Doxygen for PAPI from the source code.
Fri Aug 30 2024 19:06:49 | Version 7.2.0.0b1 |