NAME

PAPI_lock - Lock one of two mutex variables defined in papi.h
PAPI_unlock - Unlock one of the mutex variables defined in papi.h

CONTENTS

Synopsis
Description
Argument
Return Values
Authors
Bugs
See Also

SYNOPSIS

C Interface

#include <papi.h> 

void PAPI_lock(intlock); 

void PAPI_unlock(intlock); 

Fortran Interface

#include fpapi.h 

PAPIF_lock(C_INT lock) 

PAPIF_unlock(C_INT lock) 

DESCRIPTION

PAPI_lock() Grabs access to one of the two PAPI mutex variables. This function is provided to the user to have a platform independent call to (hopefully) efficiently implemented mutex.

PAPI_unlock() unlocks the mutex acquired by a call to PAPI_lock.

ARGUMENT

lock -- an integer value specifying one of the two user locks: PAPI_USR1_LOCK or PAPI_USR2_LOCK

RETURN VALUES

There are no return values for these calls. Upon return from PAPI_lock the current thread has acquired exclusive access to the specified PAPI mutex.

AUTHORS

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

BUGS

These functions have no known bugs.

SEE ALSO


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

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