people wrongly assume reasonable values in the field...
void atomic_store_explicit(struct atomic_object *obj, int value, memory_order order)
{
DBG();
- obj->value = value;
model->switch_to_master(new ModelAction(ATOMIC_WRITE, order, obj, value));
}
void atomic_init(struct atomic_object *obj, int value)
{
DBG();
- obj->value = value;
model->switch_to_master(new ModelAction(ATOMIC_INIT, memory_order_relaxed, obj, value));
}