NAME

PAPI_register_thread - Notify PAPI of the existence of a new thread

CONTENTS

Synopsis
Description
Arguments
Return Values
Errors
Examples
Authors
See Also

SYNOPSIS


#include <papi.h> 

int PAPI_register_thread (void); 

DESCRIPTION

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.

ARGUMENTS

RETURN VALUES

On success, this function returns PAPI_OK.
On error, a non-zero error code is returned.

ERRORS

PAPI_ENOMEM
  Space could not be allocated to store the new thread information.

EXAMPLES

AUTHORS

The PAPI Team. See them at the PAPI Web Site: http://icl.cs.utk.edu/projects/papi

SEE ALSO

PAPI_thread_init (3), PAPI_thread_id (3), PAPI_get_thr_specific (3), PAPI_set_thr_specific (3), PAPI_register_thread (3)


PAPI Programmer’s Reference PAPI_register_thread (3) November, 2003

  Innovative Computing Laboratory
2001 R&D Winner  
Contact PAPI: papi@cs.utk.edu Computer Science Department
  University of Tennessee