PAPI  5.0.1.0
linux-bgq-lock.h File Reference

Go to the source code of this file.

Functions

void _papi_hwd_lock (int)
void _papi_hwd_unlock (int)

Function Documentation

void _papi_hwd_lock ( int  )

< Used with setting up array

Definition at line 91 of file linux-bgq.c.

{
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_lock %d\n", lock);
#endif
    assert( lock < PAPI_MAX_LOCK );
#if 1
    UPC_Lock( &thdLocks[lock] );
#else
    pthread_mutex_lock( &thdLocks[lock] );
#endif
    
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_lock got lock %d\n", lock );
#endif
    
    return;
}
void _papi_hwd_unlock ( int  )

< Used with setting up array

Definition at line 114 of file linux-bgq.c.

{
#ifdef DEBUG_BGQ
    printf( _AT_ " _papi_hwd_unlock %d\n", lock );
#endif
    assert( lock < PAPI_MAX_LOCK );
#if 1
    UPC_Unlock( &thdLocks[lock] );
#else
    pthread_mutex_unlock( &thdLocks[lock] );
#endif
    
    return;
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines