Searched refs:runcount (Results 1 – 5 of 5) sorted by relevance
129 lock->runcount = 0; in glwthread_rwlock_init()156 if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) in glwthread_rwlock_rdlock()172 if (!(lock->runcount > 0)) in glwthread_rwlock_rdlock()185 while (!(lock->runcount + 1 > 0)); in glwthread_rwlock_rdlock()188 lock->runcount++; in glwthread_rwlock_rdlock()213 if (!(lock->runcount == 0)) in glwthread_rwlock_wrlock()229 if (!(lock->runcount == -1)) in glwthread_rwlock_wrlock()242 while (!(lock->runcount == 0)); in glwthread_rwlock_wrlock()245 lock->runcount--; /* runcount becomes -1 */ in glwthread_rwlock_wrlock()275 if (!(lock->runcount + 1 > 0 && lock->waiting_writers.count == 0)) in glwthread_rwlock_tryrdlock()[all …]
78 lock->runcount = 0; in glthread_rwlock_init()94 while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) in glthread_rwlock_rdlock()104 lock->runcount++; in glthread_rwlock_rdlock()118 while (!(lock->runcount == 0)) in glthread_rwlock_wrlock()131 lock->runcount--; /* runcount becomes -1 */ in glthread_rwlock_wrlock()144 if (lock->runcount < 0) in glthread_rwlock_unlock()147 if (!(lock->runcount == -1)) in glthread_rwlock_unlock()152 lock->runcount = 0; in glthread_rwlock_unlock()157 if (!(lock->runcount > 0)) in glthread_rwlock_unlock()162 lock->runcount--; in glthread_rwlock_unlock()[all …]
46 int runcount; /* number of readers running, or -1 when a writer runs */ member
142 int runcount; /* number of readers running, or -1 when a writer runs */ member385 int runcount; /* number of readers running, or -1 when a writer runs */ member
1339 ntfs_volume *vol, struct RUNCOUNT *runcount) in ntfs_dump_attribute_header() argument1441 runcount->fragments++; in ntfs_dump_attribute_header()1443 runcount->runs++; in ntfs_dump_attribute_header()1452 runcount->fragments++; in ntfs_dump_attribute_header()2350 struct RUNCOUNT runcount; in ntfs_dump_file_attributes() local2353 runcount.runs = 0; in ntfs_dump_file_attributes()2354 runcount.fragments = 0; in ntfs_dump_file_attributes()2368 ntfs_dump_attribute_header(ctx, inode->vol, &runcount); in ntfs_dump_file_attributes()2433 runcount.runs, runcount.fragments); in ntfs_dump_file_attributes()