design_pattern_for_c
V 1.00
|
Utility mutex API for design pattern. More...
#include <pthread.h>
Go to the source code of this file.
Lock/Unlock API | |
#define | DPUTIL_LOCK(lock) |
lock macro, to care pthread_cancel More... | |
#define | DPUTIL_UNLOCK pthread_cleanup_pop(1); |
unlock macro, to care pthread_cancel More... | |
void | dputil_lock (void *handle) |
lock More... | |
void | dputil_unlock (void *handle) |
unlock More... | |
Utility mutex API for design pattern.
Definition in file dp_mutex.h.
#define DPUTIL_LOCK | ( | lock | ) |
lock macro, to care pthread_cancel
Definition at line 15 of file dp_mutex.h.
#define DPUTIL_UNLOCK pthread_cleanup_pop(1); |
unlock macro, to care pthread_cancel
Definition at line 19 of file dp_mutex.h.