$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r58841 - in sandbox/fiber: . boost/fiber boost/fiber/detail libs/fiber/doc libs/fiber/src libs/fiber/src/detail
From: oliver.kowalke_at_[hidden]
Date: 2010-01-09 10:24:25
Author: olli
Date: 2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
New Revision: 58841
URL: http://svn.boost.org/trac/boost/changeset/58841
Log:
- code formating
Text files modified: 
   sandbox/fiber/boost/fiber/detail/info_base_posix.hpp      |    10 +++++-----                              
   sandbox/fiber/boost/fiber/detail/info_base_windows.hpp    |    10 +++++-----                              
   sandbox/fiber/boost/fiber/detail/interrupt_flags.hpp      |     2 +-                                      
   sandbox/fiber/boost/fiber/detail/state_flags.hpp          |     2 +-                                      
   sandbox/fiber/boost/fiber/scheduler.hpp                   |     4 +---                                    
   sandbox/fiber/boost/fiber/strategy.hpp                    |     6 +++---                                  
   sandbox/fiber/change.log                                  |     4 ++++                                    
   sandbox/fiber/libs/fiber/doc/fiber.qbk                    |    14 +++++++-------                          
   sandbox/fiber/libs/fiber/doc/fiber_ref.qbk                |    10 +++++-----                              
   sandbox/fiber/libs/fiber/doc/spin_condition_variables.qbk |     2 +-                                      
   sandbox/fiber/libs/fiber/doc/todo.qbk                     |     2 +-                                      
   sandbox/fiber/libs/fiber/src/detail/fiber_posix.cpp       |     2 +-                                      
   sandbox/fiber/libs/fiber/src/detail/fiber_windows.cpp     |     2 +-                                      
   sandbox/fiber/libs/fiber/src/strategy.cpp                 |     4 ++--                                    
   14 files changed, 38 insertions(+), 36 deletions(-)
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	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -39,17 +39,17 @@
 struct BOOST_FIBER_DECL info_base
 {
         typedef intrusive_ptr< info_base >	ptr;
-	typedef function< void() >			callable_t;
-	typedef std::stack< callable_t >	callable_stack_t;
+	typedef function< void() >			callable_type;
+	typedef std::stack< callable_type >	callable_stack_type;
 
         unsigned int			use_count;
         std::size_t				stack_size;
         int						priority;
         ::ucontext_t			uctx;
         shared_array< char >	uctx_stack;
-	state_t					state;
-	interrupt_t				interrupt;
-	callable_stack_t		at_exit;
+	state_type				state;
+	interrupt_type			interrupt;
+	callable_stack_type		at_exit;
         strategy			*	st;
 
         info_base();
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	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -43,16 +43,16 @@
 struct BOOST_FIBER_DECL info_base
 {
         typedef intrusive_ptr< info_base >	ptr;	
-	typedef function< void() >			callable_t;
-	typedef std::stack< callable_t >	callable_stack_t;
+	typedef function< void() >			callable_type;
+	typedef std::stack< callable_type >	callable_stack_type;
 
         unsigned int		use_count;
         std::size_t			stack_size;
         int					priority;
         LPVOID				uctx;
-	state_t				state;
-	interrupt_t			interrupt;
-	callable_stack_t	at_exit;
+	state_type			state;
+	interrupt_type		interrupt;
+	callable_stack_type	at_exit;
         strategy			*	st;
 
         info_base();
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	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -24,7 +24,7 @@
         INTERRUPTION_BLOCKED	= 1 << 2
 };
 
-typedef char interrupt_t;
+typedef char interrupt_type;
 
 }}}
 
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	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -28,7 +28,7 @@
         STATE_TERMINATED		= 1 << 6
 };
 
-typedef char state_t;
+typedef char state_type;
 
 #define IS_ALIVE_BIT_MASK 0x3C
 
Modified: sandbox/fiber/boost/fiber/scheduler.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/scheduler.hpp	(original)
+++ sandbox/fiber/boost/fiber/scheduler.hpp	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -44,9 +44,7 @@
         friend class manual_reset_event;
         friend class mutex;
 
-	typedef intrusive_ptr< strategy >	strategy_t;
-
-	strategy_t	strategy_;
+	intrusive_ptr< strategy >	strategy_;
 
 public:
         scheduler() :
Modified: sandbox/fiber/boost/fiber/strategy.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/strategy.hpp	(original)
+++ sandbox/fiber/boost/fiber/strategy.hpp	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -88,7 +88,7 @@
         friend class manual_reset_event;
         friend class mutex;
 
-	typedef function< void() >						callable_t;
+	typedef function< void() >						callable_type;
 
         static bool runs_as_fiber_();
 
@@ -98,7 +98,7 @@
 
         static bool interruption_requested_();
 
-	static detail::interrupt_t & interrupt_flags_();
+	static detail::interrupt_type & interrupt_flags_();
 
         static bool interruption_enabled_();
 
@@ -106,7 +106,7 @@
 
         static void priority_( int);
 
-	static void at_fiber_exit_( callable_t);
+	static void at_fiber_exit_( callable_type);
 
         static void yield_();
 
Modified: sandbox/fiber/change.log
==============================================================================
--- sandbox/fiber/change.log	(original)
+++ sandbox/fiber/change.log	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -1,3 +1,7 @@
+0.3.8:
+------
+- code formating
+
 0.3.7:
 ------
 - warnings (4251, 4275) supressed for msvc 
Modified: sandbox/fiber/libs/fiber/doc/fiber.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/fiber.qbk	(original)
+++ sandbox/fiber/libs/fiber/doc/fiber.qbk	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -1,15 +1,15 @@
 [/
-  (C) Copyright 2007-8 Anthony Williams.
-  Distributed under the Boost Software License, Version 1.0.
-  (See accompanying file LICENSE_1_0.txt or copy at
-  http://www.boost.org/LICENSE_1_0.txt).
+          Copyright Oliver Kowalke 2009.
+ Distributed under the Boost Software License, Version 1.0.
+    (See accompanying file LICENSE_1_0.txt or copy at
+          http://www.boost.org/LICENSE_1_0.txt
 ]
 
 [article Fiber
     [quickbook 1.4]
     [authors [Kowalke, Oliver]]
     [copyright 2009 Oliver Kowalke]
-    [purpose C++ Library for launching fibers and synchronizing data between them]
+    [purpose C++ Library for launching fibers (micro-threads) and synchronizing data between them]
     [category text]
     [license
         Distributed under the Boost Software License, Version 1.0.
@@ -19,9 +19,9 @@
 ]
 
 
-[def __boost_atomic__ [@http://www.chaoticmind.net/~hcb/projects/boost.atomic/doc/index.html [*Boost.Atomic]]]
+[def __boost_atomic__ [@http://www.chaoticmind.net/~hcb/projects/boost.atomic [*Boost.Atomic]]]
 [def __boost_fiber__ [*Boost.Fiber]]
-[def __boost_move__ [@http://svn.boost.org/svn/boost/sandbox/move/libs/move/doc/html/index.html [*Boost.Move]]]
+[def __boost_move__ [@http://svn.boost.org/svn/boost/sandbox/move [*Boost.Move]]]
 [def __boost_thread__ [@http://www.boost.org/libs/thread [*Boost.Thread]]]
 
 [template barrier_link[link_text] [link fiber.synchronization.barriers [link_text]]]
Modified: sandbox/fiber/libs/fiber/doc/fiber_ref.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/fiber_ref.qbk	(original)
+++ sandbox/fiber/libs/fiber/doc/fiber_ref.qbk	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -193,8 +193,8 @@
                 template< typename Fn >
                 explicit fiber( Fn fn, std::size_t stack_size);
 
-		template< typename Fn, typename A1, typename A2,..., typename A10 >
-		fiber( Fn fn, A1 a1, A2 a2,..., A10 a10, std::size_t stack_size);
+		template< typename Fn, typename A1, typename A2,... >
+		fiber( Fn fn, A1 a1, A2 a2,..., std::size_t stack_size);
 
                 template< typename Fn >
                 explicit fiber( Fn && fn, std::size_t stack_size);
@@ -254,7 +254,7 @@
 ]
 [endsect]
 
-[section:multiple_argument_constructor `template< typename Fn, typename A1, typename A2,..., typename A10 > fiber( Fn fn, A1 a1, A2 a2,..., A10 a10, std::size_t stack_size)`]
+[section:multiple_argument_constructor `template< typename Fn, typename A1, typename A2,... > fiber( Fn fn, A1 a1, A2 a2,..., std::size_t stack_size)`]
 [variablelist
 [[Preconditions:] [`Fn` and each `A`n must by copyable or movable.]]
 [[Effects:] [As if `fiber( boost::bind( fn, a1, a2,...) )`. Consequently, `fn` and each `a`n
@@ -381,8 +381,8 @@
     template< typename Fn >
     fiber make_fiber( Fn fn, std::size_t stack_size);
     
-    template< typename Fn, typename A1, typename A2,..., typename A10 >
-    fiber make_fiber( Fn fn, A1 a1, A2 a2,..., A10 a10, std::size_t stack_size);
+    template< typename Fn, typename A1, typename A2,... >
+    fiber make_fiber( Fn fn, A1 a1, A2 a2,..., std::size_t stack_size);
 
 [variablelist
 [[Effects:] [Creates a fiber.]]
Modified: sandbox/fiber/libs/fiber/doc/spin_condition_variables.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/spin_condition_variables.qbk	(original)
+++ sandbox/fiber/libs/fiber/doc/spin_condition_variables.qbk	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -14,7 +14,7 @@
 condition is not true, then the fiber then calls `wait` again to resume waiting. In the simplest case, this
 condition is just a boolean variable:
 
-    boost::fibers::condition cond;
+    boost::fibers::spin::condition cond;
     boost::fibers::spin::mutex mtx;
     bool data_ready;
 
Modified: sandbox/fiber/libs/fiber/doc/todo.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/todo.qbk	(original)
+++ sandbox/fiber/libs/fiber/doc/todo.qbk	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -11,7 +11,7 @@
 
 * replace system calls related to fiber switching (like swapcontext()) by assembler
 
-* replace thread_specific_ptr by an specialiced implementation for fiber (interusive_ptr)
+* replace thread_specific_ptr by an specialiced implementation for class fiber
 
 * provide an scheduler which deals with priorities
 
Modified: sandbox/fiber/libs/fiber/src/detail/fiber_posix.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/detail/fiber_posix.cpp	(original)
+++ sandbox/fiber/libs/fiber/src/detail/fiber_posix.cpp	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -33,7 +33,7 @@
         catch (...) {}
         while ( ! self->at_exit.empty() )
         {
-		detail::info_base::callable_t ca;
+		detail::info_base::callable_type ca;
                 self->at_exit.top().swap( ca);
                 self->at_exit.pop();
                 ca();
Modified: sandbox/fiber/libs/fiber/src/detail/fiber_windows.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/detail/fiber_windows.cpp	(original)
+++ sandbox/fiber/libs/fiber/src/detail/fiber_windows.cpp	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -49,7 +49,7 @@
         catch (...) {}
         while ( ! self->at_exit.empty() )
         {
-		detail::info_base::callable_t ca;
+		detail::info_base::callable_type ca;
                 self->at_exit.top().swap( ca);
                 self->at_exit.pop();
                 ca();
Modified: sandbox/fiber/libs/fiber/src/strategy.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/strategy.cpp	(original)
+++ sandbox/fiber/libs/fiber/src/strategy.cpp	2010-01-09 10:24:23 EST (Sat, 09 Jan 2010)
@@ -43,7 +43,7 @@
         return active->interruption_requested();
 }
 
-detail::interrupt_t &
+detail::interrupt_type &
 strategy::interrupt_flags_()
 {
         fiber * active( active_fiber.get() );
@@ -76,7 +76,7 @@
 }
 
 void
-strategy::at_fiber_exit_( callable_t ca)
+strategy::at_fiber_exit_( callable_type ca)
 {
         fiber * active( active_fiber.get() );
         if ( ! active) throw fiber_error("not a fiber");