
29 Sep
2009
29 Sep
'09
10:55 a.m.
Hi! I've written quite simple app to test lockfree::atomic_int. What I see: struct atomic_cas64 { ... #elif defined(_M_IX86) return InterlockedCompareExchange(reinterpret_cast<volatile LONG*>(addr), reinterpret_cast<LONG>(nw), // reinterpret_cast: cannot cast boost::int64_t to LONG reinterpret_cast<LONG>(old)) == old; // reinterpret_cast: cannot cast boost::int64_t to LONG I can give you source code of my simple program if you want. More questions: what is the status of LockFree? Are there any alternatives for atomic_int? Thank you!