Lines Matching defs:rwl
47 pthread_rwlock_t rwl;
70 rwl = *rwlock;
72 if (rwl->nMagic != PTW32_RWLOCK_MAGIC)
78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0)
83 if (++rwl->nSharedAccessCount == INT_MAX)
86 pthread_mutex_timedlock (&(rwl->mtxSharedAccessCompleted),
91 ++rwl->nCompletedSharedAccessCount;
93 (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
97 rwl->nSharedAccessCount -= rwl->nCompletedSharedAccessCount;
98 rwl->nCompletedSharedAccessCount = 0;
101 pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted))) != 0)
103 (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
108 return (pthread_mutex_unlock (&(rwl->mtxExclusiveAccess)));