From 1b0df15c23ebf67b7737021312dbb14bf442daba Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 15 Jan 2013 23:57:45 -0800 Subject: [PATCH] litmus: iriw: use release/acquire, not release/relaxed --- test/litmus/iriw.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.34.1