Lines Matching refs:target
76 struct _ck_array *target;
84 target = array->active;
86 if (array->n_entries == target->length) {
87 size = target->length << 1;
89 target = array->allocator->realloc(target,
94 if (target == NULL)
97 ck_pr_store_uint(&target->length, size);
101 ck_pr_store_ptr(&array->active, target);
104 target->values[array->n_entries++] = value;
108 target = array->transaction;
109 if (array->n_entries == target->length) {
110 size = target->length << 1;
112 target = array->allocator->realloc(target,
117 if (target == NULL)
120 target->length = size;
121 array->transaction = target;
124 target->values[array->n_entries++] = value;
152 struct _ck_array *target;
156 target = array->transaction;
159 if (target->values[i] == value) {
160 target->values[i] = target->values[--array->n_entries];
168 target = array->active;
171 if (target->values[i] == value)
179 if (target->n_committed != array->n_entries) {
180 ck_pr_store_ptr(&target->values[i], target->values[--array->n_entries]);
189 target = ck_array_create(array->allocator, array->n_entries);
190 if (target == NULL)
193 memcpy(target->values, array->active->values, sizeof(void *) * array->n_entries);
194 target->length = array->n_entries;
195 target->n_committed = array->n_entries;
196 target->values[i] = target->values[--array->n_entries];
198 array->transaction = target;