|
DTNMA Reference Tools v2.2.0 - 14.ge930b04
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
This file contains preprocessor utility definitions shared among the CACE library. More...
Include dependency graph for mutex.h:
This graph shows which files directly or indirectly include this file:Macros | |
| #define | CACE_INTERNAL_LOCK(func, mutex) |
| Lock a mutex and terminate if failed. | |
| #define | CACE_INTERNAL_UNLOCK(func, mutex) |
| Unlock a mutex and terminate if failed. | |
| #define | CACE_MUTEX_LOCK(mutex) CACE_INTERNAL_LOCK(pthread_mutex_lock, mutex) |
| Lock a mutex and terminate if failed. | |
| #define | CACE_MUTEX_UNLOCK(mutex) CACE_INTERNAL_UNLOCK(pthread_mutex_unlock, mutex) |
| Unlock a mutex and terminate if failed. | |
This file contains preprocessor utility definitions shared among the CACE library.
| #define CACE_INTERNAL_LOCK | ( | func, | |
| mutex | |||
| ) |
Lock a mutex and terminate if failed.
| func | The locking function |
| mutex | A pointer to the mutex |
| #define CACE_INTERNAL_UNLOCK | ( | func, | |
| mutex | |||
| ) |
Unlock a mutex and terminate if failed.
| func | The unlocking function |
| mutex | A pointer to the mutex |
| #define CACE_MUTEX_LOCK | ( | mutex | ) | CACE_INTERNAL_LOCK(pthread_mutex_lock, mutex) |
Lock a mutex and terminate if failed.
| #define CACE_MUTEX_UNLOCK | ( | mutex | ) | CACE_INTERNAL_UNLOCK(pthread_mutex_unlock, mutex) |
Unlock a mutex and terminate if failed.