Lines Matching defs:rwl
46 pthread_rwlock_t rwl;
69 rwl = *rwlock;
71 if (rwl->nMagic != PTW32_RWLOCK_MAGIC)
76 if ((result = pthread_mutex_lock (&(rwl->mtxExclusiveAccess))) != 0)
81 if (++rwl->nSharedAccessCount == INT_MAX)
84 pthread_mutex_lock (&(rwl->mtxSharedAccessCompleted))) != 0)
86 (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
90 rwl->nSharedAccessCount -= rwl->nCompletedSharedAccessCount;
91 rwl->nCompletedSharedAccessCount = 0;
94 pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted))) != 0)
96 (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
101 return (pthread_mutex_unlock (&(rwl->mtxExclusiveAccess)));