common.h 257 B

12345678910111213
  1. #ifndef _LIBLOCKDEP_TEST_COMMON_H
  2. #define _LIBLOCKDEP_TEST_COMMON_H
  3. #define LOCK_UNLOCK_2(a, b) \
  4. do { \
  5. pthread_mutex_lock(&(a)); \
  6. pthread_mutex_lock(&(b)); \
  7. pthread_mutex_unlock(&(b)); \
  8. pthread_mutex_unlock(&(a)); \
  9. } while(0)
  10. #endif