[cxx-mem-model] Allow memory model to be a runtime value.

2011-08-24 Thread Andrew MacLeod
As I mentioned earlier, C++11 allows the memory model to be determined at runtime. Rather than invoke a call to a runtime library or inline a switch statement with all the valid options, just default to SEQ_CST mode.This can easily be changed later if it is determined to be needed. The do

Re: [cxx-mem-model] Allow memory model to be a runtime value.

2011-08-24 Thread Andrew MacLeod
On 08/24/2011 10:23 AM, Andrew MacLeod wrote: As I mentioned earlier, C++11 allows the memory model to be determined at runtime. Rather than invoke a call to a runtime library or inline a switch statement with all the valid options, just default to SEQ_CST mode.This can easily be changed l