Lines Matching refs:generation
87 unsigned int generation[MAX_KEYS];
117 __gthread_key_create) iff its generation count in this structure is
122 A key is actually valid in a thread T iff the generation count
123 stored in this structure is equal to the generation count stored in
131 unsigned int generation[MAX_KEYS];
134 #define KEY_VALID_P(key) !(tls_keys.generation[key] & 1)
137 to match. All the generation counts begin at 1, which means no
156 This routine does not need to take tls_lock; the generation
184 if (data->generation[key] == tls_keys.generation[key])
257 tls_keys.generation[key]++; /* making it even */
284 tls_keys.generation[key]++; /* making it odd */
311 if (data->generation[key] != tls_keys.generation[key])
320 The generation count protects this function against races with
322 value is successfully stored into a dead generation (and then
324 to read tls_keys.generation[key] atomically. */
330 unsigned int generation;
360 generation = tls_keys.generation[key];
362 if (generation & 1)
365 data->generation[key] = generation;