Searched refs:runcount (Results 1 – 2 of 2) sorted by relevance
142 lock->runcount = 0; in glthread_rwlock_init_multithreaded()160 while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) in glthread_rwlock_rdlock_multithreaded()171 lock->runcount++; in glthread_rwlock_rdlock_multithreaded()184 while (!(lock->runcount == 0)) in glthread_rwlock_wrlock_multithreaded()198 lock->runcount--; /* runcount becomes -1 */ in glthread_rwlock_wrlock_multithreaded()210 if (lock->runcount < 0) in glthread_rwlock_unlock_multithreaded()213 if (!(lock->runcount == -1)) in glthread_rwlock_unlock_multithreaded()218 lock->runcount = 0; in glthread_rwlock_unlock_multithreaded()223 if (!(lock->runcount > 0)) in glthread_rwlock_unlock_multithreaded()228 lock->runcount--; in glthread_rwlock_unlock_multithreaded()[all …]
242 int runcount; /* number of readers running, or -1 when a writer runs */ member685 int runcount; /* number of readers running, or -1 when a writer runs */ member