Lines Matching defs:rwl
46 pthread_rwlock_t rwl;
61 rwl = *rwlock;
63 if (rwl->nMagic != PTW32_RWLOCK_MAGIC)
68 if (rwl->nExclusiveAccessCount == 0)
71 pthread_mutex_lock (&(rwl->mtxSharedAccessCompleted))) != 0)
76 if (++rwl->nCompletedSharedAccessCount == 0)
78 result = pthread_cond_signal (&(rwl->cndSharedAccessCompleted));
81 result1 = pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted));
85 rwl->nExclusiveAccessCount--;
87 result = pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted));
88 result1 = pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));