Lines Matching defs:rwl
45 pthread_rwlock_t rwl;
55 rwl = *rwlock;
57 if (rwl->nMagic != PTW32_RWLOCK_MAGIC)
62 if ((result = pthread_mutex_lock (&(rwl->mtxExclusiveAccess))) != 0)
68 pthread_mutex_lock (&(rwl->mtxSharedAccessCompleted))) != 0)
70 (void) pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
78 if (rwl->nExclusiveAccessCount > 0
79 || rwl->nSharedAccessCount > rwl->nCompletedSharedAccessCount)
81 result = pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted));
82 result1 = pthread_mutex_unlock (&(rwl->mtxExclusiveAccess));
87 rwl->nMagic = 0;
90 pthread_mutex_unlock (&(rwl->mtxSharedAccessCompleted))) != 0)
92 pthread_mutex_unlock (&rwl->mtxExclusiveAccess);
97 pthread_mutex_unlock (&(rwl->mtxExclusiveAccess))) != 0)
103 result = pthread_cond_destroy (&(rwl->cndSharedAccessCompleted));
104 result1 = pthread_mutex_destroy (&(rwl->mtxSharedAccessCompleted));
105 result2 = pthread_mutex_destroy (&(rwl->mtxExclusiveAccess));
106 (void) free (rwl);