|
Boost Users : |
Subject: Re: [Boost-users] [LockFree] compile problems under VS 2008 sp1
From: Tim Blechmann (tim_at_[hidden])
Date: 2009-09-29 07:10:58
> 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
thanks, i will have a look at the code ... i am neither using windows,
nor msvc, so the win32-specific code is not very well tested ...
> More questions: what is the status of LockFree?
i consider the implementation as quite stable and the library is
submitted for review (though i didn't get any reply on the review
request :/)
> Are there any alternatives for atomic_int?
there is a boost::detail::atomic_count ...
tim
-- tim_at_[hidden] http://tim.klingt.org /"\ ASCII Ribbon Campaign \ / no HTML in email & vCards X no proprietary attachments / \ use open standards
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