From: Brian Norris Date: Wed, 16 Jan 2013 07:57:45 +0000 (-0800) Subject: litmus: iriw: use release/acquire, not release/relaxed X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1b0df15c23ebf67b7737021312dbb14bf442daba;p=cdsspec-compiler.git litmus: iriw: use release/acquire, not release/relaxed --- diff --git a/test/litmus/iriw.cc b/test/litmus/iriw.cc index cc519f1..80ee8b9 100644 --- a/test/litmus/iriw.cc +++ b/test/litmus/iriw.cc @@ -17,14 +17,14 @@ static void b(void *obj) static void c(void *obj) { - printf("x1: %d\n", x.load(std::memory_order_relaxed)); - printf("y1: %d\n", y.load(std::memory_order_relaxed)); + printf("x1: %d\n", x.load(std::memory_order_acquire)); + printf("y1: %d\n", y.load(std::memory_order_acquire)); } static void d(void *obj) { - printf("y2: %d\n", y.load(std::memory_order_relaxed)); - printf("x2: %d\n", x.load(std::memory_order_relaxed)); + printf("y2: %d\n", y.load(std::memory_order_acquire)); + printf("x2: %d\n", x.load(std::memory_order_acquire)); } int user_main(int argc, char **argv)