regressions: ck_ht parallel benchmark makes use of affinerator.

Currently, it will default to RR behavior across cores with no
delta support.
ck_pring
Samy Al Bahra 13 years ago
parent d9017b3e5b
commit cef7de2c5f

@ -65,6 +65,7 @@ enum state {
HT_STATE_COUNT
};
static struct affinity affinerator = AFFINITY_INITIALIZER;
static uint64_t accumulator[HT_STATE_COUNT];
static int barrier[HT_STATE_COUNT];
static int state;
@ -212,6 +213,8 @@ ht_reader(void *unused)
uint64_t s, j, a;
(void)unused;
if (aff_iterate(&affinerator) != 0)
perror("WARNING: Failed to affine thread");
s = j = a = 0;
ck_epoch_register(&epoch_ht, &epoch_record);
@ -307,6 +310,7 @@ main(int argc, char *argv[])
}
}
affinerator.delta = 1;
readers = malloc(sizeof(pthread_t) * n_threads);
assert(readers != NULL);

Loading…
Cancel
Save