From 9ed7200f1ffce5963e5196aa82c2406a62a107d2 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 26 Apr 2012 11:47:22 -0700 Subject: [PATCH] libatomic: add DBG() calls --- libatomic.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libatomic.cc b/libatomic.cc index e224a8a..b607e22 100644 --- a/libatomic.cc +++ b/libatomic.cc @@ -1,13 +1,16 @@ #include "libatomic.h" #include "model.h" +#include "common.h" void atomic_store_explicit(struct atomic_object *obj, int value, memory_order order) { + DBG(); model->switch_to_master(new ModelAction(ATOMIC_WRITE, order, obj, value)); } int atomic_load_explicit(struct atomic_object *obj, memory_order order) { + DBG(); model->switch_to_master(new ModelAction(ATOMIC_READ, order, obj, VALUE_NONE)); return 0; } -- 2.34.1