improve functor locking.
This commit is contained in:
@@ -64,6 +64,15 @@ xIS_UNLOCKED(pthread_mutex_t *LOCK_VAR) {
|
||||
#define WRITE_LOCK(X) pthread_rwlock_wrlock(&(X))
|
||||
#define WRITE_UNLOCK(X) pthread_rwlock_unlock(&(X))
|
||||
|
||||
#define FUNC_READ_LOCK(F)
|
||||
#define FUNC_READ_UNLOCK(F)
|
||||
|
||||
#define FUNC_WRITE_LOCK(F)
|
||||
#define FUNC_WRITE_UNLOCK(F)
|
||||
|
||||
#define TRUE_FUNC_WRITE_LOCK(F) WRITE_LOCK((F)->FRWLock)
|
||||
#define TRUE_FUNC_WRITE_UNLOCK(F) WRITE_UNLOCK((F)->FRWLock)
|
||||
|
||||
|
||||
#if THREADS
|
||||
|
||||
|
Reference in New Issue
Block a user