Home
last modified time | relevance | path

Searched refs:runcount (Results 1 – 2 of 2) sorted by relevance

/external/bison/lib/glthread/
Dlock.c142 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 …]
Dlock.h242 int runcount; /* number of readers running, or -1 when a writer runs */ member
685 int runcount; /* number of readers running, or -1 when a writer runs */ member