
18 Aug
2012
18 Aug
'12
1:09 p.m.
On Saturday 18 August 2012 14:57:53 Vicente J. Botet Escriba wrote:
Hi,
I'm locking for a portable integer type that is the larger integer type that supports atomic loads and stores.
The sig_atomic_t type defined in <csignal> supports atomic loads and stores but I'm not sure is the larger one.
Does boost define such a typedef? If not, could such typedef be included in boost and where?
Not exactly what you asked, but Boost.Atomic defines macros that allow to detect which types can be used in lock-free operations. In C++11, similar macros are defined in <atomic>.