Go to the source code of this file.
Definition at line 93 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; }
Definition at line 116 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; }