Boost logo

Boost Users :

Subject: [Boost-users] [LockFree] compile problems under VS 2008 sp1
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-09-29 06:55:46


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!


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net