Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58612 - in sandbox/fiber: . boost/fiber boost/fiber/detail boost/fiber/object boost/fiber/spin libs/fiber/doc libs/fiber/src/spin libs/fiber/test
From: oliver.kowalke_at_[hidden]
Date: 2009-12-31 17:39:55


Author: olli
Date: 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
New Revision: 58612
URL: http://svn.boost.org/trac/boost/changeset/58612

Log:
- ABI-PRE/SUFFIX
- BOOST_FIBER_DECL added

Text files modified:
   sandbox/fiber/boost/fiber/auto_reset_event.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/barrier.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/bounded_channel.hpp | 9 +++++++--
   sandbox/fiber/boost/fiber/condition.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/count_down_event.hpp | 14 ++++++++++++--
   sandbox/fiber/boost/fiber/detail/future_traits.hpp | 8 ++++++++
   sandbox/fiber/boost/fiber/detail/info.hpp | 8 ++++++--
   sandbox/fiber/boost/fiber/detail/info_base_posix.hpp | 12 ++++++++----
   sandbox/fiber/boost/fiber/detail/info_base_windows.hpp | 12 ++++++++----
   sandbox/fiber/boost/fiber/detail/interrupt_flags.hpp | 10 ++++++++--
   sandbox/fiber/boost/fiber/detail/state_flags.hpp | 10 ++++++++--
   sandbox/fiber/boost/fiber/exceptions.hpp | 10 ++++++++--
   sandbox/fiber/boost/fiber/fiber.hpp | 10 +++++++---
   sandbox/fiber/boost/fiber/interruption.hpp | 9 +++++++--
   sandbox/fiber/boost/fiber/manual_reset_event.hpp | 14 ++++++++++++--
   sandbox/fiber/boost/fiber/mutex.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/object/id.hpp | 10 ++++++++++
   sandbox/fiber/boost/fiber/round_robin.hpp | 9 +++++++--
   sandbox/fiber/boost/fiber/scheduler.hpp | 12 ++++++++----
   sandbox/fiber/boost/fiber/spin/auto_reset_event.hpp | 13 ++++++++++++-
   sandbox/fiber/boost/fiber/spin/barrier.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/spin/bounded_channel.hpp | 15 +++++++++++++--
   sandbox/fiber/boost/fiber/spin/condition.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/spin/count_down_event.hpp | 13 ++++++++++++-
   sandbox/fiber/boost/fiber/spin/future.hpp | 8 ++++++++
   sandbox/fiber/boost/fiber/spin/manual_reset_event.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/spin/mutex.hpp | 12 +++++++++++-
   sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp | 14 ++++++++++++--
   sandbox/fiber/boost/fiber/strategy.hpp | 9 +++++++--
   sandbox/fiber/boost/fiber/unbounded_channel.hpp | 8 ++++++--
   sandbox/fiber/boost/fiber/utility.hpp | 9 +++++++--
   sandbox/fiber/change.log | 6 ++++++
   sandbox/fiber/libs/fiber/doc/barrier.qbk | 4 ++--
   sandbox/fiber/libs/fiber/doc/event_variables.qbk | 12 ++++++------
   sandbox/fiber/libs/fiber/doc/spin_barrier.qbk | 4 ++--
   sandbox/fiber/libs/fiber/doc/spin_event_variables.qbk | 12 ++++++------
   sandbox/fiber/libs/fiber/src/spin/auto_reset_event.cpp | 2 +-
   sandbox/fiber/libs/fiber/src/spin/manual_reset_event.cpp | 2 +-
   sandbox/fiber/libs/fiber/src/spin/mutex.cpp | 2 +-
   sandbox/fiber/libs/fiber/test/test_count_down_event.cpp | 14 +++++++-------
   sandbox/fiber/libs/fiber/test/test_spin_count_down_event.cpp | 16 ++++++++--------
   41 files changed, 329 insertions(+), 87 deletions(-)

Modified: sandbox/fiber/boost/fiber/auto_reset_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/auto_reset_event.hpp (original)
+++ sandbox/fiber/boost/fiber/auto_reset_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -7,12 +7,18 @@
 #ifndef BOOST_FIBERS_AUTO_RESET_EVENT_H
 #define BOOST_FIBERS_AUTO_RESET_EVENT_H
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/object/id.hpp>
 #include <boost/fiber/scheduler.hpp>
 #include <boost/fiber/strategy.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 # if defined(BOOST_MSVC)
 # pragma warning(push)
 # pragma warning(disable:4355)
@@ -21,7 +27,7 @@
 namespace boost {
 namespace fibers {
 
-class auto_reset_event : private noncopyable
+class BOOST_FIBER_DECL auto_reset_event : private noncopyable
 {
 private:
         enum state
@@ -57,4 +63,8 @@
 # pragma warning(pop)
 # endif
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_AUTO_RESET_EVENT_H

Modified: sandbox/fiber/boost/fiber/barrier.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/barrier.hpp (original)
+++ sandbox/fiber/boost/fiber/barrier.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,16 +10,22 @@
 #include <cstddef>
 #include <stdexcept>
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
 #include <boost/fiber/condition.hpp>
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/mutex.hpp>
 #include <boost/fiber/scheduler.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 
-class barrier : private noncopyable
+class BOOST_FIBER_DECL barrier : private noncopyable
 {
 private:
         std::size_t initial_;
@@ -43,4 +49,8 @@
 
 }}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_BARRIER_H

Modified: sandbox/fiber/boost/fiber/bounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/bounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/bounded_channel.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -11,6 +11,7 @@
 #include <stdexcept>
 
 #include <boost/intrusive_ptr.hpp>
+#include <boost/config.hpp>
 #include <boost/optional.hpp>
 #include <boost/utility.hpp>
 
@@ -18,7 +19,9 @@
 #include <boost/fiber/exceptions.hpp>
 #include <boost/fiber/mutex.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -304,6 +307,8 @@
 
 }}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_BOUNDED_CHANNEL_H

Modified: sandbox/fiber/boost/fiber/condition.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/condition.hpp (original)
+++ sandbox/fiber/boost/fiber/condition.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -12,15 +12,21 @@
 #include <cstddef>
 
 #include <boost/assert.hpp>
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 #include <boost/thread/locks.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/exceptions.hpp>
 #include <boost/fiber/mutex.hpp>
 #include <boost/fiber/object/id.hpp>
 #include <boost/fiber/scheduler.hpp>
 #include <boost/fiber/strategy.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 # if defined(BOOST_MSVC)
 # pragma warning(push)
 # pragma warning(disable:4355)
@@ -29,7 +35,7 @@
 namespace boost {
 namespace fibers {
 
-class condition : private noncopyable
+class BOOST_FIBER_DECL condition : private noncopyable
 {
 private:
         enum command
@@ -140,4 +146,8 @@
 # pragma warning(pop)
 # endif
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_CONDITION_H

Modified: sandbox/fiber/boost/fiber/count_down_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/count_down_event.hpp (original)
+++ sandbox/fiber/boost/fiber/count_down_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,13 +9,19 @@
 
 #include <cstddef>
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
-#include <boost/fiber/object/id.hpp>
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/mutex.hpp>
+#include <boost/fiber/object/id.hpp>
 #include <boost/fiber/scheduler.hpp>
 #include <boost/fiber/strategy.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 # if defined(BOOST_MSVC)
 # pragma warning(push)
 # pragma warning(disable:4355)
@@ -24,7 +30,7 @@
 namespace boost {
 namespace fibers {
 
-class count_down_event : private noncopyable
+class BOOST_FIBER_DECL count_down_event : private noncopyable
 {
 private:
         std::size_t initial_;
@@ -60,4 +66,8 @@
 # pragma warning(pop)
 # endif
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_COUNT_DOWN_EVENT_H

Modified: sandbox/fiber/boost/fiber/detail/future_traits.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/future_traits.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/future_traits.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -20,6 +20,10 @@
 #include <boost/type_traits/is_convertible.hpp>
 #include <boost/type_traits/is_fundamental.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace detail {
@@ -79,4 +83,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_DETAIL_FUTURE_TRAITS_H

Modified: sandbox/fiber/boost/fiber/detail/info.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/info.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/info.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -17,7 +17,9 @@
 #include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/detail/info_base.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -102,6 +104,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_DETAIL_INFO_H

Modified: sandbox/fiber/boost/fiber/detail/info_base_posix.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/info_base_posix.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/info_base_posix.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -16,7 +16,7 @@
 #include <cstddef>
 #include <stack>
 
-#include <boost/cstdint.hpp>
+#include <boost/config.hpp>
 #include <boost/function.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/shared_array.hpp>
@@ -25,7 +25,9 @@
 #include <boost/fiber/detail/interrupt_flags.hpp>
 #include <boost/fiber/detail/state_flags.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -40,7 +42,7 @@
         typedef function< void() > callable_t;
         typedef std::stack< callable_t > callable_stack_t;
 
- uint32_t use_count;
+ unsigned int use_count;
         std::size_t stack_size;
         int priority;
         ::ucontext_t uctx;
@@ -67,6 +69,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_DETAIL_INFO_POSIX_H

Modified: sandbox/fiber/boost/fiber/detail/info_base_windows.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/info_base_windows.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/info_base_windows.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -16,7 +16,7 @@
 #include <cstddef>
 #include <stack>
 
-#include <boost/cstdint.hpp>
+#include <boost/config.hpp>
 #include <boost/function.hpp>
 #include <boost/intrusive_ptr.hpp>
 
@@ -24,7 +24,9 @@
 #include <boost/fiber/detail/interrupt_flags.hpp>
 #include <boost/fiber/detail/state_flags.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 # if defined(BOOST_MSVC)
 # pragma warning(push)
@@ -44,7 +46,7 @@
         typedef function< void() > callable_t;
         typedef std::stack< callable_t > callable_stack_t;
 
- uint32_t use_count;
+ unsigned int use_count;
         std::size_t stack_size;
         int priority;
         LPVOID uctx;
@@ -74,6 +76,8 @@
 # pragma warning(pop)
 # endif
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_DETAIL_INFO_WINDOWS_H

Modified: sandbox/fiber/boost/fiber/detail/interrupt_flags.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/interrupt_flags.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/interrupt_flags.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -7,7 +7,11 @@
 #ifndef BOOST_FIBERS_DETAIL_INTERRUPT_FLAGS_H
 #define BOOST_FIBERS_DETAIL_INTERRUPT_FLAGS_H
 
-#include <boost/config/abi_prefix.hpp>
+#include <boost/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -24,6 +28,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_DETAIL_INTERRUPT_FLAGS_H

Modified: sandbox/fiber/boost/fiber/detail/state_flags.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/detail/state_flags.hpp (original)
+++ sandbox/fiber/boost/fiber/detail/state_flags.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -7,7 +7,11 @@
 #ifndef BOOST_FIBERS_DETAIL_STATE_FLAGS_H
 #define BOOST_FIBERS_DETAIL_STATE_FLAGS_H
 
-#include <boost/config/abi_prefix.hpp>
+#include <boost/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -30,6 +34,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_DETAIL_STATE_FLAGS_H

Modified: sandbox/fiber/boost/fiber/exceptions.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/exceptions.hpp (original)
+++ sandbox/fiber/boost/fiber/exceptions.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,9 +10,13 @@
 #include <stdexcept>
 #include <string>
 
+#include <boost/config.hpp>
+
 #include <boost/fiber/detail/config.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -116,6 +120,8 @@
 
 }}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_EXCEPTIONS_H

Modified: sandbox/fiber/boost/fiber/fiber.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/fiber.hpp (original)
+++ sandbox/fiber/boost/fiber/fiber.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -21,7 +21,9 @@
 #include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/detail/info.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 # if defined(BOOST_MSVC)
 # pragma warning(push)
@@ -145,7 +147,7 @@
         void join();
 };
 
-class fiber::id
+class BOOST_FIBER_DECL fiber::id
 {
 private:
         friend class fiber;
@@ -220,6 +222,8 @@
 # pragma warning(pop)
 # endif
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_FIBER_H

Modified: sandbox/fiber/boost/fiber/interruption.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/interruption.hpp (original)
+++ sandbox/fiber/boost/fiber/interruption.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,13 +9,16 @@
 
 #include <cstddef>
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
 #include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/detail/interrupt_flags.hpp>
 #include <boost/fiber/strategy.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace this_fiber {
@@ -76,6 +79,8 @@
 
 }}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_THIS_FIBER_INTERRUPTION_H

Modified: sandbox/fiber/boost/fiber/manual_reset_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/manual_reset_event.hpp (original)
+++ sandbox/fiber/boost/fiber/manual_reset_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,13 +9,19 @@
 
 #include <cstddef>
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
-#include <boost/fiber/object/id.hpp>
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/mutex.hpp>
+#include <boost/fiber/object/id.hpp>
 #include <boost/fiber/scheduler.hpp>
 #include <boost/fiber/strategy.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 # if defined(BOOST_MSVC)
 # pragma warning(push)
 # pragma warning(disable:4355)
@@ -24,7 +30,7 @@
 namespace boost {
 namespace fibers {
 
-class manual_reset_event : private noncopyable
+class BOOST_FIBER_DECL manual_reset_event : private noncopyable
 {
 private:
         enum state
@@ -66,4 +72,8 @@
 # pragma warning(pop)
 # endif
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_MANUAL_RESET_EVENT_H

Modified: sandbox/fiber/boost/fiber/mutex.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/mutex.hpp (original)
+++ sandbox/fiber/boost/fiber/mutex.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,14 +9,20 @@
 #ifndef BOOST_FIBERS_MUTEX_H
 #define BOOST_FIBERS_MUTEX_H
 
+#include <boost/config.hpp>
 #include <boost/thread/locks.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/fiber.hpp>
 #include <boost/fiber/object/id.hpp>
 #include <boost/fiber/scheduler.hpp>
 #include <boost/fiber/strategy.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 # if defined(BOOST_MSVC)
 # pragma warning(push)
 # pragma warning(disable:4355)
@@ -25,7 +31,7 @@
 namespace boost {
 namespace fibers {
 
-class mutex : private noncopyable
+class BOOST_FIBER_DECL mutex : private noncopyable
 {
 private:
         enum state
@@ -65,4 +71,8 @@
 # pragma warning(pop)
 # endif
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_MUTEX_H

Modified: sandbox/fiber/boost/fiber/object/id.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/object/id.hpp (original)
+++ sandbox/fiber/boost/fiber/object/id.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,6 +9,12 @@
 
 #include <iostream>
 
+#include <boost/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace object {
@@ -55,4 +61,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_DETAIL_ID_H

Modified: sandbox/fiber/boost/fiber/round_robin.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/round_robin.hpp (original)
+++ sandbox/fiber/boost/fiber/round_robin.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -12,6 +12,7 @@
 #include <map>
 #include <queue>
 
+#include <boost/config.hpp>
 #include <boost/function.hpp>
 #include <boost/optional.hpp>
 #include <boost/utility.hpp>
@@ -21,7 +22,9 @@
 #include <boost/fiber/fiber.hpp>
 #include <boost/fiber/strategy.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 # if defined(BOOST_MSVC)
 # pragma warning(push)
@@ -128,6 +131,8 @@
 # pragma warning(pop)
 # endif
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_ROUND_ROBIN_H

Modified: sandbox/fiber/boost/fiber/scheduler.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/scheduler.hpp (original)
+++ sandbox/fiber/boost/fiber/scheduler.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,18 +10,20 @@
 #include <cstddef>
 #include <memory>
 
+#include <boost/config.hpp>
 #include <boost/preprocessor/repetition.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/move/move.hpp>
 #include <boost/utility.hpp>
 
-#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/exceptions.hpp>
 #include <boost/fiber/fiber.hpp>
 #include <boost/fiber/round_robin.hpp>
 #include <boost/fiber/strategy.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 # if defined(BOOST_MSVC)
 # pragma warning(push)
@@ -38,7 +40,7 @@
 class mutex;
 
 template< typename Strategy = round_robin >
-class BOOST_FIBER_DECL scheduler : private noncopyable
+class scheduler : private noncopyable
 {
 private:
         friend class auto_reset_event;
@@ -120,6 +122,8 @@
 # pragma warning(pop)
 # endif
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_SCHEDULER_H

Modified: sandbox/fiber/boost/fiber/spin/auto_reset_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/auto_reset_event.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/auto_reset_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -8,13 +8,20 @@
 #define BOOST_FIBERS_SPIN_AUTO_RESET_EVENT_H
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class auto_reset_event : private noncopyable
+class BOOST_FIBER_DECL auto_reset_event : private noncopyable
 {
 private:
         enum state
@@ -37,4 +44,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_AUTO_RESET_EVENT_H

Modified: sandbox/fiber/boost/fiber/spin/barrier.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/barrier.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/barrier.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -9,16 +9,22 @@
 
 #include <cstddef>
 
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/spin/condition.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class barrier : private noncopyable
+class BOOST_FIBER_DECL barrier : private noncopyable
 {
 private:
         std::size_t initial_;
@@ -35,4 +41,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_BARRIER_H

Modified: sandbox/fiber/boost/fiber/spin/bounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/bounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/bounded_channel.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -11,6 +11,7 @@
 #include <stdexcept>
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/optional.hpp>
 #include <boost/utility.hpp>
@@ -19,7 +20,9 @@
 #include <boost/fiber/spin/condition.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -168,6 +171,9 @@
                 std::size_t lower_bound() const
                 { return lwm_; }
 
+ bool active() const
+ { return active_(); }
+
                 void deactivate()
                 { deactivate_(); }
 
@@ -289,6 +295,9 @@
         
         std::size_t lower_bound() const
         { return impl_->lower_bound(); }
+
+ bool active() const
+ { return impl_->active(); }
         
         void deactivate()
         { impl_->deactivate(); }
@@ -308,6 +317,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_SPIN_BOUNDED_CHANNEL_H

Modified: sandbox/fiber/boost/fiber/spin/condition.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/condition.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/condition.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -13,19 +13,25 @@
 
 #include <boost/assert.hpp>
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/thread/locks.hpp>
 #include <boost/thread/thread.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/exceptions.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 #include <boost/fiber/utility.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class condition : private noncopyable
+class BOOST_FIBER_DECL condition : private noncopyable
 {
 private:
         enum command
@@ -131,4 +137,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_CONDITION_H

Modified: sandbox/fiber/boost/fiber/spin/count_down_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/count_down_event.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/count_down_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,13 +10,20 @@
 #include <cstddef>
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class count_down_event : private noncopyable
+class BOOST_FIBER_DECL count_down_event : private noncopyable
 {
 private:
         std::size_t initial_;
@@ -38,4 +45,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_COUNT_DOWN_EVENT_H

Modified: sandbox/fiber/boost/fiber/spin/future.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/future.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/future.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -27,6 +27,10 @@
 #include <boost/fiber/spin/condition.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 
@@ -1078,4 +1082,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_FUTURE_H

Modified: sandbox/fiber/boost/fiber/spin/manual_reset_event.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/manual_reset_event.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/manual_reset_event.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,15 +10,21 @@
 #include <cstddef>
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class manual_reset_event : private noncopyable
+class BOOST_FIBER_DECL manual_reset_event : private noncopyable
 {
 private:
         enum state
@@ -45,4 +51,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_MANUAL_RESET_EVENT_H

Modified: sandbox/fiber/boost/fiber/spin/mutex.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/mutex.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/mutex.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,16 +10,22 @@
 #define BOOST_FIBERS_SPIN_MUTEX_H
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/thread/locks.hpp>
 #include <boost/utility.hpp>
 
+#include <boost/fiber/detail/config.hpp>
 #include <boost/fiber/fiber.hpp>
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
 namespace boost {
 namespace fibers {
 namespace spin {
 
-class mutex : private noncopyable
+class BOOST_FIBER_DECL mutex : private noncopyable
 {
 private:
         enum state
@@ -46,4 +52,8 @@
 
 }}}
 
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
 #endif // BOOST_FIBERS_SPIN_MUTEX_H

Modified: sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -20,7 +20,9 @@
 #include <boost/fiber/spin/condition.hpp>
 #include <boost/fiber/spin/mutex.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -111,6 +113,9 @@
                         use_count_( 0)
                 {}
 
+ bool active() const
+ { return active_(); }
+
                 void deactivate()
                 { deactivate_(); }
 
@@ -189,6 +194,9 @@
                 impl_( new impl() )
         {}
 
+ bool active() const
+ { return impl_->active(); }
+
         void deactivate()
         { impl_->deactivate(); }
 
@@ -207,6 +215,8 @@
 
 }}}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_SPIN_UNBOUNDED_CHANNEL_H

Modified: sandbox/fiber/boost/fiber/strategy.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/strategy.hpp (original)
+++ sandbox/fiber/boost/fiber/strategy.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -10,6 +10,7 @@
 #include <cstddef>
 
 #include <boost/atomic.hpp>
+#include <boost/config.hpp>
 #include <boost/function.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/move/move.hpp>
@@ -19,7 +20,9 @@
 #include <boost/fiber/object/id.hpp>
 #include <boost/fiber/fiber.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 # if defined(BOOST_MSVC)
 # pragma warning(push)
@@ -218,6 +221,8 @@
 # pragma warning(pop)
 # endif
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_STRATEGY_H

Modified: sandbox/fiber/boost/fiber/unbounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/unbounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/unbounded_channel.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -20,7 +20,9 @@
 #include <boost/fiber/mutex.hpp>
 #include <boost/fiber/scheduler.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace fibers {
@@ -196,6 +198,8 @@
 
 }}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_FIBERS_UNBOUNDED_CHANNEL_H

Modified: sandbox/fiber/boost/fiber/utility.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/utility.hpp (original)
+++ sandbox/fiber/boost/fiber/utility.hpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -8,13 +8,16 @@
 #define BOOST_THIS_FIBER_UTILITY_H
 
 #include <boost/bind.hpp>
+#include <boost/config.hpp>
 #include <boost/function.hpp>
 #include <boost/move/move.hpp>
 
 #include <boost/fiber/fiber.hpp>
 #include <boost/fiber/strategy.hpp>
 
-#include <boost/config/abi_prefix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
 
 namespace boost {
 namespace this_fiber {
@@ -77,6 +80,8 @@
 
 }}
 
-#include <boost/config/abi_suffix.hpp>
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
 
 #endif // BOOST_THIS_FIBER_UTILITY_H

Modified: sandbox/fiber/change.log
==============================================================================
--- sandbox/fiber/change.log (original)
+++ sandbox/fiber/change.log 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -1,3 +1,9 @@
+0.3.6:
+------
+- bound/unbounded-channel function bool active() const added
+- BOOST_FIBER_DECL added
+- BOOST_ABI_PREFIX/BOOST_ABI_SUFFIX added
+
 0.3.5:
 ------
 - boudned/unbounded-fifo renamed to bounded/unbounded-channel

Modified: sandbox/fiber/libs/fiber/doc/barrier.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/barrier.qbk (original)
+++ sandbox/fiber/libs/fiber/doc/barrier.qbk 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -22,14 +22,14 @@
     {
     public:
         template< typename Strategy >
- barrier( scheduler< Strategy > & sched, uint32_t initial);
+ barrier( scheduler< Strategy > & sched, unsigned int initial);
 
         bool wait();
     };
 
 Instances of __barrier__ are not copyable or movable.
 
-[section:constructor `template< typename Strategy > barrier( scheduler< Strategy > & sched, uint32_t initial)`]
+[section:constructor `template< typename Strategy > barrier( scheduler< Strategy > & sched, unsigned int initial)`]
 [variablelist
 [[Effects:] [Construct a barrier for `initial` fibers.]]
 [[Throws:] [__invalid_argument__ if an error occurs.]]

Modified: sandbox/fiber/libs/fiber/doc/event_variables.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/event_variables.qbk (original)
+++ sandbox/fiber/libs/fiber/doc/event_variables.qbk 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -205,13 +205,13 @@
     {
     public:
                 template< typename Strategy >
- explicit count_down_event( scheduler< Strategy > & sched, uint32_t initial);
+ explicit count_down_event( scheduler< Strategy > & sched, unsigned int initial);
 
         ~count_down_event();
 
- uint32_t initial() const;
+ unsigned int initial() const;
 
- uint32_t current() const;
+ unsigned int current() const;
 
         bool is_set() const;
 
@@ -220,7 +220,7 @@
         void wait();
     };
 
-[section:constructor `template< typename Strategy > explicit count_down_event( scheduler< Strategy > & sched, uint32_t initial)`]
+[section:constructor `template< typename Strategy > explicit count_down_event( scheduler< Strategy > & sched, unsigned int initial)`]
 [variablelist
 [[Effects:] [Constructs an object of class `count_down_event` with initial value.]]
 [[Throws:] [Nothing.]]
@@ -236,14 +236,14 @@
 ]
 [endsect]
 
-[section:initial `uint32_t initial()`]
+[section:initial `unsigned int initial()`]
 [variablelist
 [[Effects:] [Returns the initial value the event variable was initialized with.]]
 [[Throws:] [Nothing.]]
 ]
 [endsect]
 
-[section:current `uint32_t current()`]
+[section:current `unsigned int current()`]
 [variablelist
 [[Effects:] [Returns the value the variable currently holds.]]
 [[Throws:] [Nothing.]]

Modified: sandbox/fiber/libs/fiber/doc/spin_barrier.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/spin_barrier.qbk (original)
+++ sandbox/fiber/libs/fiber/doc/spin_barrier.qbk 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -22,14 +22,14 @@
     class barrier
     {
     public:
- barrier( uint32_t initial);
+ barrier( unsigned int initial);
 
         bool wait();
     };
 
 Instances of __spin_barrier__ are not copyable or movable.
 
-[section:constructor `barrier( uint32_t initial)`]
+[section:constructor `barrier( unsigned int initial)`]
 [variablelist
 [[Effects:] [Construct a barrier for `initial` fibers.]]
 [[Throws:] [__invalid_argument__ if an error occurs.]]

Modified: sandbox/fiber/libs/fiber/doc/spin_event_variables.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/spin_event_variables.qbk (original)
+++ sandbox/fiber/libs/fiber/doc/spin_event_variables.qbk 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -201,13 +201,13 @@
     class count_down_event : private boost::noncopyable
     {
     public:
- explicit count_down_event( uint32_t initial);
+ explicit count_down_event( unsigned int initial);
 
         ~count_down_event();
 
- uint32_t initial() const;
+ unsigned int initial() const;
 
- uint32_t current() const;
+ unsigned int current() const;
 
         bool is_set() const;
 
@@ -216,7 +216,7 @@
         void wait();
     };
 
-[section:constructor `explicit count_down_event( uint32_t initial)`]
+[section:constructor `explicit count_down_event( unsigned int initial)`]
 [variablelist
 [[Effects:] [Constructs an object of class `count_down_event` with initial value.]]
 [[Throws:] [Nothing.]]
@@ -232,14 +232,14 @@
 ]
 [endsect]
 
-[section:initial `uint32_t initial()`]
+[section:initial `unsigned int initial()`]
 [variablelist
 [[Effects:] [Returns the initial value the event variable was initialized with.]]
 [[Throws:] [Nothing.]]
 ]
 [endsect]
 
-[section:current `uint32_t current()`]
+[section:current `unsigned int current()`]
 [variablelist
 [[Effects:] [Returns the value the variable currently holds.]]
 [[Throws:] [Nothing.]]

Modified: sandbox/fiber/libs/fiber/src/spin/auto_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/spin/auto_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/src/spin/auto_reset_event.cpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -20,7 +20,7 @@
 
 void
 auto_reset_event::set()
-{ state_.exchange( SET); }
+{ state_.store( SET); }
 
 void
 auto_reset_event::wait()

Modified: sandbox/fiber/libs/fiber/src/spin/manual_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/spin/manual_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/src/spin/manual_reset_event.cpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -38,7 +38,7 @@
         mutex::scoped_lock lk( enter_mtx_);
         BOOST_ASSERT( lk);
 
- state_.exchange( RESET);
+ state_.store( RESET);
 }
 
 void

Modified: sandbox/fiber/libs/fiber/src/spin/mutex.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/spin/mutex.cpp (original)
+++ sandbox/fiber/libs/fiber/src/spin/mutex.cpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -42,6 +42,6 @@
 
 void
 mutex::unlock()
-{ state_.exchange( UNLOCKED); }
+{ state_.store( UNLOCKED); }
 
 }}}

Modified: sandbox/fiber/libs/fiber/test/test_count_down_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_count_down_event.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_count_down_event.cpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -29,7 +29,7 @@
 
 void test_case_1()
 {
- boost::uint32_t n = 3;
+ unsigned int n = 3;
         boost::fibers::scheduler<> sched;
         boost::fibers::count_down_event ev( sched, n);
 
@@ -38,25 +38,25 @@
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 2) );
+ BOOST_CHECK_EQUAL( ev.current(), 2);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 1) );
+ BOOST_CHECK_EQUAL( ev.current(), 1);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
 }
 
 void test_case_2()
 {
         value = 0;
- boost::uint32_t n = 3;
+ unsigned int n = 3;
         boost::fibers::scheduler<> sched;
         boost::fibers::count_down_event ev( sched, n);
 
@@ -79,7 +79,7 @@
         ev.set();
         BOOST_CHECK( sched.run() );
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
         BOOST_CHECK_EQUAL( 1, value);
 }
 

Modified: sandbox/fiber/libs/fiber/test/test_spin_count_down_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_spin_count_down_event.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_spin_count_down_event.cpp 2009-12-31 17:39:51 EST (Thu, 31 Dec 2009)
@@ -29,7 +29,7 @@
 
 void test_case_1()
 {
- boost::uint32_t n = 3;
+ unsigned int n = 3;
         boost::fibers::spin::count_down_event ev( n);
 
         BOOST_CHECK_EQUAL( ev.initial(), n);
@@ -37,25 +37,25 @@
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 2) );
+ BOOST_CHECK_EQUAL( ev.current(), 2);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 1) );
+ BOOST_CHECK_EQUAL( ev.current(), 1);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
 
         ev.set();
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
 }
 
 void test_case_2()
 {
         value = 0;
- boost::uint32_t n = 3;
+ unsigned int n = 3;
         boost::fibers::spin::count_down_event ev( n);
         boost::fibers::scheduler<> sched;
 
@@ -67,7 +67,7 @@
                 boost::ref( ev),
                 boost::fiber::default_stacksize);
 
- for ( boost::uint32_t i = 0; i < n - 1; ++i)
+ for ( unsigned int i = 0; i < n - 1; ++i)
         {
                 ev.set();
                 BOOST_CHECK( sched.run() );
@@ -76,7 +76,7 @@
         ev.set();
         BOOST_CHECK( sched.run() );
         BOOST_CHECK_EQUAL( ev.initial(), n);
- BOOST_CHECK_EQUAL( ev.current(), static_cast< boost::uint32_t >( 0) );
+ BOOST_CHECK_EQUAL( ev.current(), 0);
         BOOST_CHECK_EQUAL( 1, value);
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk