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   ) 

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

00094 {
00095 #ifdef DEBUG_BGQ
00096     printf( _AT_ " _papi_hwd_lock %d\n", lock);
00097 #endif
00098     assert( lock < PAPI_MAX_LOCK );
00099 #if 1
00100     UPC_Lock( &thdLocks[lock] );
00101 #else
00102     pthread_mutex_lock( &thdLocks[lock] );
00103 #endif
00104     
00105 #ifdef DEBUG_BGQ
00106     printf( _AT_ " _papi_hwd_lock got lock %d\n", lock );
00107 #endif
00108     
00109     return;
00110 }

void _papi_hwd_unlock ( int   ) 

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

00117 {
00118 #ifdef DEBUG_BGQ
00119     printf( _AT_ " _papi_hwd_unlock %d\n", lock );
00120 #endif
00121     assert( lock < PAPI_MAX_LOCK );
00122 #if 1
00123     UPC_Unlock( &thdLocks[lock] );
00124 #else
00125     pthread_mutex_unlock( &thdLocks[lock] );
00126 #endif
00127     
00128     return;
00129 }


Generated on 8 Sep 2016 for PAPI by  doxygen 1.6.1