From: Brian Norris Date: Thu, 26 Apr 2012 18:47:22 +0000 (-0700) Subject: libatomic: add DBG() calls X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ed7200f1ffce5963e5196aa82c2406a62a107d2;p=cdsspec-compiler.git libatomic: add DBG() calls --- 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; }