Lines Matching refs:use_data
161 struct object_use_data *use_data = &bucket.uses[object]; in StartWrite() local
162 use_data->reader_count = 0; in StartWrite()
163 use_data->writer_count = 1; in StartWrite()
164 use_data->thread = tid; in StartWrite()
166 struct object_use_data *use_data = &bucket.uses[object]; in StartWrite() local
167 if (use_data->reader_count == 0) { in StartWrite()
169 if (use_data->thread != tid) { in StartWrite()
174 typeName, (uint64_t)use_data->thread, (uint64_t)tid); in StartWrite()
184 use_data->thread = tid; in StartWrite()
185 use_data->writer_count += 1; in StartWrite()
190 use_data->writer_count += 1; in StartWrite()
194 if (use_data->thread != tid) { in StartWrite()
199 typeName, (uint64_t)use_data->thread, (uint64_t)tid); in StartWrite()
209 use_data->thread = tid; in StartWrite()
210 use_data->writer_count += 1; in StartWrite()
215 use_data->writer_count += 1; in StartWrite()
228 struct object_use_data *use_data = &bucket.uses[object]; in FinishWrite() local
229 use_data->writer_count -= 1; in FinishWrite()
230 if ((use_data->reader_count == 0) && (use_data->writer_count == 0)) { in FinishWrite()
245 struct object_use_data *use_data = &bucket.uses[object]; in StartRead() local
246 use_data->reader_count = 1; in StartRead()
247 use_data->writer_count = 0; in StartRead()
248 use_data->thread = tid; in StartRead()
259 struct object_use_data *use_data = &bucket.uses[object]; in StartRead() local
260 use_data->reader_count = 1; in StartRead()
261 use_data->writer_count = 0; in StartRead()
262 use_data->thread = tid; in StartRead()
277 struct object_use_data *use_data = &bucket.uses[object]; in FinishRead() local
278 use_data->reader_count -= 1; in FinishRead()
279 if ((use_data->reader_count == 0) && (use_data->writer_count == 0)) { in FinishRead()