commit 8d81075fdf1bac76d1326dbb297f8fbf4d001575 parent 2f6c2071ad38f3d81f52e7820323fd3aa08f1a80 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Mar 4 11:06:43 +0200 Atomics shouldn't need to be volatile Diffstat:
platform_atomic.h | | | 8 | ++++---- |
diff --git a/platform_atomic.h b/platform_atomic.h @@ -48,28 +48,28 @@ struct atomic_s32 { NONCOPYABLE( atomic_s32 ); atomic_s32() { store_relaxed( this, 0 ); } atomic_s32( s32 x ) { store_relaxed( this, x ); } - volatile s32 v; + s32 v; }; struct atomic_s64 { NONCOPYABLE( atomic_s64 ); atomic_s64() { store_relaxed( this, 0 ); } atomic_s64( s64 x ) { store_relaxed( this, x ); } - volatile s64 v; + s64 v; }; struct atomic_u32 { NONCOPYABLE( atomic_u32 ); atomic_u32() { store_relaxed( this, 0 ); } atomic_u32( u32 x ) { store_relaxed( this, x ); } - volatile u32 v; + u32 v; }; struct atomic_u64 { NONCOPYABLE( atomic_u64 ); atomic_u64() { store_relaxed( this, 0 ); } atomic_u64( u64 x ) { store_relaxed( this, x ); } - volatile u64 v; + u64 v; }; // TODO: maybe use these instead?