regressions: Switch to volatile load on ready flag.

ck_pring
Samy Al Bahra 9 years ago
parent 27fb1bc00f
commit ea9658d8d8

@ -123,7 +123,7 @@ fairness(void *null)
ck_pr_inc_uint(&barrier); ck_pr_inc_uint(&barrier);
while (ck_pr_load_uint(&barrier) != nthr); while (ck_pr_load_uint(&barrier) != nthr);
while (ready) { while (ck_pr_load_uint(&ready)) {
CK_COHORT_LOCK(basic, cohort, NULL, NULL); CK_COHORT_LOCK(basic, cohort, NULL, NULL);
count[i].value++; count[i].value++;

@ -40,7 +40,7 @@ fairness(void *null)
} }
while (ck_pr_load_uint(&ready) == 0); while (ck_pr_load_uint(&ready) == 0);
while (ready) { while (ck_pr_load_uint(&ready)) {
ATOMIC; ATOMIC;
ATOMIC; ATOMIC;
ATOMIC; ATOMIC;

Loading…
Cancel
Save