Hi,
On Tue, 2009-03-24 at 09:15 +0100, Marcus Lindblom wrote:
>
> I don't know what Gerrit went with in his first implementation, but it's
> easy to optimize.
>
basically boost::detail::atomic_exchange_and_add and
boost::detail::atomic_increment
on non windows platforms and BOOST_INTERLOCKED_INCREMENT and
BOOST_INTERLOCKED_EXCHANGE_ADD on windows. That's basically
what they use in sp_counted_base. I hope that catches most of
the platforms and is reasonably fast ;)
kind regards,
gerrit
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users