Searched refs:writer_count (Results 1 – 5 of 5) sorted by relevance
29 int writer_count; member42 p->writer_count = 0; in rwlock_init()51 assert(p->writer_count == 0); in rwlock_destroy()61 if (p->writer_count == 0) in rwlock_rdlock()73 assert(p->writer_count >= 0); in rwlock_rdlock()74 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()95 p->writer_count++; in rwlock_wrlock()97 assert(p->writer_count >= 0); in rwlock_wrlock()98 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()114 p->writer_count--; in rwlock_unlock()[all …]
39 int writer_count; member52 p->writer_count = 0; in rwlock_init()61 assert(p->writer_count == 0); in rwlock_destroy()71 if (p->writer_count == 0) in rwlock_rdlock()83 assert(p->writer_count >= 0); in rwlock_rdlock()84 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_rdlock()106 p->writer_count++; in rwlock_wrlock()108 assert(p->writer_count >= 0); in rwlock_wrlock()109 assert(p->reader_count == 0 || p->writer_count == 0); in rwlock_wrlock()127 p->writer_count--; in rwlock_unlock()[all …]
51 int writer_count; member73 use_data->writer_count = 1; in startWrite()93 use_data->writer_count = 1; in startWrite()97 use_data->writer_count += 1; in startWrite()102 use_data->writer_count += 1; in startWrite()120 use_data->writer_count = 1; in startWrite()124 use_data->writer_count += 1; in startWrite()129 use_data->writer_count += 1; in startWrite()139 uses[object].writer_count -= 1; in finishWrite()140 if ((uses[object].reader_count == 0) && (uses[object].writer_count == 0)) { in finishWrite()[all …]
721 int writer_count = sizeof(writers) / sizeof(writers[0]); in Write() local723 if (!dir.AllocateArray(writer_count)) in Write()728 header.get()->stream_count = writer_count; in Write()733 for (int i = 0; i < writer_count; ++i) { in Write()
228 int writer_count = static_cast<int>(sizeof(writers) / sizeof(writers[0])); in Write() local233 --writer_count; in Write()236 if (!dir.AllocateArray(writer_count)) in Write()243 header_ptr->stream_count = writer_count; in Write()248 for (int i = 0; (result) && (i < writer_count); ++i) { in Write()