|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53508 - in sandbox/task: boost/task boost/task/detail libs/task/doc
From: oliver.kowalke_at_[hidden]
Date: 2009-05-31 14:04:51
Author: olli
Date: 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
New Revision: 53508
URL: http://svn.boost.org/trac/boost/changeset/53508
Log:
* ABI header include
* dllimport specifications
Text files modified:
sandbox/task/boost/task/async.hpp | 4 ++++
sandbox/task/boost/task/bounded_channel.hpp | 4 ++++
sandbox/task/boost/task/default_pool.hpp | 2 +-
sandbox/task/boost/task/detail/atomic.hpp | 4 ++++
sandbox/task/boost/task/detail/bind_processor_aix.hpp | 4 ++++
sandbox/task/boost/task/detail/bind_processor_hpux.hpp | 4 ++++
sandbox/task/boost/task/detail/bind_processor_linux.hpp | 4 ++++
sandbox/task/boost/task/detail/bind_processor_solaris.hpp | 4 ++++
sandbox/task/boost/task/detail/bind_processor_windows.hpp | 4 ++++
sandbox/task/boost/task/detail/guard.hpp | 4 +---
sandbox/task/boost/task/detail/interrupter.hpp | 4 +---
sandbox/task/boost/task/detail/meta.hpp | 4 ++++
sandbox/task/boost/task/detail/pool_callable.hpp | 3 +--
sandbox/task/boost/task/detail/thread_callable.hpp | 3 +--
sandbox/task/boost/task/detail/worker.hpp | 3 +--
sandbox/task/boost/task/detail/worker_group.hpp | 3 +--
sandbox/task/boost/task/detail/wsq.hpp | 3 +--
sandbox/task/boost/task/exceptions.hpp | 4 ++++
sandbox/task/boost/task/fifo.hpp | 4 ++++
sandbox/task/boost/task/handle.hpp | 4 ++++
sandbox/task/boost/task/id.hpp | 4 ++++
sandbox/task/boost/task/meta.hpp | 4 ++++
sandbox/task/boost/task/priority.hpp | 4 ++++
sandbox/task/boost/task/smart.hpp | 4 ++++
sandbox/task/boost/task/static_pool.hpp | 4 ++++
sandbox/task/boost/task/task.hpp | 4 ++++
sandbox/task/boost/task/unbounded_channel.hpp | 4 ++++
sandbox/task/boost/task/utility.hpp | 14 +++++++-------
sandbox/task/libs/task/doc/overview.qbk | 2 +-
29 files changed, 92 insertions(+), 25 deletions(-)
Modified: sandbox/task/boost/task/async.hpp
==============================================================================
--- sandbox/task/boost/task/async.hpp (original)
+++ sandbox/task/boost/task/async.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -22,6 +22,8 @@
#include <boost/task/static_pool.hpp>
#include <boost/task/task.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
@@ -111,4 +113,6 @@
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_ASYNC_H
Modified: sandbox/task/boost/task/bounded_channel.hpp
==============================================================================
--- sandbox/task/boost/task/bounded_channel.hpp (original)
+++ sandbox/task/boost/task/bounded_channel.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -22,6 +22,8 @@
#include <boost/task/exceptions.hpp>
#include <boost/task/watermark.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template< typename SchedulingPolicy >
@@ -388,4 +390,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_BOUNDED_CHANNEL_H
Modified: sandbox/task/boost/task/default_pool.hpp
==============================================================================
--- sandbox/task/boost/task/default_pool.hpp (original)
+++ sandbox/task/boost/task/default_pool.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -20,7 +20,7 @@
namespace detail
{
-struct BOOST_TASK_DECL static_pool
+struct static_pool
{ static default_pool_t instance; };
}
Modified: sandbox/task/boost/task/detail/atomic.hpp
==============================================================================
--- sandbox/task/boost/task/detail/atomic.hpp (original)
+++ sandbox/task/boost/task/detail/atomic.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -11,6 +11,8 @@
#include <boost/cstdint.hpp>
#include <boost/interprocess/detail/atomic.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
namespace detail
@@ -36,5 +38,7 @@
}
} } }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_ATOMIC_H
Modified: sandbox/task/boost/task/detail/bind_processor_aix.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor_aix.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor_aix.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -17,6 +17,8 @@
#include <boost/thread.hpp>
#include <boost/system/system_error.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace this_thread
{
inline
@@ -44,4 +46,6 @@
}
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_BIND_PROCESSOR_AIX_H
Modified: sandbox/task/boost/task/detail/bind_processor_hpux.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor_hpux.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor_hpux.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -16,6 +16,8 @@
#include <boost/thread.hpp>
#include <boost/system/system_error.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace this_thread
{
inline
@@ -56,4 +58,6 @@
}
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_BIND_PROCESSOR_HPUX_H
Modified: sandbox/task/boost/task/detail/bind_processor_linux.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor_linux.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor_linux.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -17,6 +17,8 @@
#include <boost/thread.hpp>
#include <boost/system/system_error.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace this_thread
{
inline
@@ -57,4 +59,6 @@
}
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_BIND_PRCESSOR_LINUX_H
Modified: sandbox/task/boost/task/detail/bind_processor_solaris.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor_solaris.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor_solaris.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -18,6 +18,8 @@
#include <boost/thread.hpp>
#include <boost/system/system_error.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace this_thread
{
inline
@@ -44,4 +46,6 @@
}
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_BIND_PROCESSOR_SOLARIS_H
Modified: sandbox/task/boost/task/detail/bind_processor_windows.hpp
==============================================================================
--- sandbox/task/boost/task/detail/bind_processor_windows.hpp (original)
+++ sandbox/task/boost/task/detail/bind_processor_windows.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -16,6 +16,8 @@
#include <boost/thread.hpp>
#include <boost/system/system_error.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace this_thread
{
inline
@@ -46,4 +48,6 @@
}
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_BIND_PROCESSOR_WINDOWS_H
Modified: sandbox/task/boost/task/detail/guard.hpp
==============================================================================
--- sandbox/task/boost/task/detail/guard.hpp (original)
+++ sandbox/task/boost/task/detail/guard.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -10,15 +10,13 @@
#include <boost/cstdint.hpp>
#include <boost/utility.hpp>
-#include <boost/task/detail/config.hpp>
-
#include <boost/config/abi_prefix.hpp>
namespace boost { namespace task
{
namespace detail
{
-class BOOST_TASK_DECL guard : private noncopyable
+class guard : private noncopyable
{
private:
volatile uint32_t & active_worker_;
Modified: sandbox/task/boost/task/detail/interrupter.hpp
==============================================================================
--- sandbox/task/boost/task/detail/interrupter.hpp (original)
+++ sandbox/task/boost/task/detail/interrupter.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -15,15 +15,13 @@
#include <boost/thread/thread_time.hpp>
#include <boost/utility.hpp>
-#include <boost/task/detail/config.hpp>
-
#include <boost/config/abi_prefix.hpp>
namespace boost { namespace task
{
namespace detail
{
-class BOOST_TASK_DECL interrupter
+class interrupter
{
public:
enum setting
Modified: sandbox/task/boost/task/detail/meta.hpp
==============================================================================
--- sandbox/task/boost/task/detail/meta.hpp (original)
+++ sandbox/task/boost/task/detail/meta.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -7,6 +7,8 @@
#ifndef BOOST_TASK_DETAIL_INFO_H
#define BOOST_TASK_DETAIL_INFO_H
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
namespace detail
@@ -18,5 +20,7 @@
{};
} } }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_DETAIL_INFO_H
Modified: sandbox/task/boost/task/detail/pool_callable.hpp
==============================================================================
--- sandbox/task/boost/task/detail/pool_callable.hpp (original)
+++ sandbox/task/boost/task/detail/pool_callable.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -11,7 +11,6 @@
#include <boost/thread.hpp>
#include <boost/utility.hpp>
-#include <boost/task/detail/config.hpp>
#include <boost/task/detail/interrupter.hpp>
#include <boost/task/task.hpp>
@@ -21,7 +20,7 @@
{
namespace detail
{
-class BOOST_TASK_DECL pool_callable
+class pool_callable
{
private:
friend class scoped_guard;
Modified: sandbox/task/boost/task/detail/thread_callable.hpp
==============================================================================
--- sandbox/task/boost/task/detail/thread_callable.hpp (original)
+++ sandbox/task/boost/task/detail/thread_callable.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -11,7 +11,6 @@
#include <boost/thread.hpp>
#include <boost/utility.hpp>
-#include <boost/task/detail/config.hpp>
#include <boost/task/detail/interrupter.hpp>
#include <boost/task/semaphore.hpp>
#include <boost/task/task.hpp>
@@ -22,7 +21,7 @@
{
namespace detail
{
-class BOOST_TASK_DECL thread_callable
+class thread_callable
{
private:
struct impl
Modified: sandbox/task/boost/task/detail/worker.hpp
==============================================================================
--- sandbox/task/boost/task/detail/worker.hpp (original)
+++ sandbox/task/boost/task/detail/worker.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -18,7 +18,6 @@
#include <boost/utility.hpp>
#include <boost/task/detail/pool_callable.hpp>
-#include <boost/task/detail/config.hpp>
#include <boost/task/detail/guard.hpp>
#include <boost/task/detail/interrupter.hpp>
#include <boost/task/detail/wsq.hpp>
@@ -32,7 +31,7 @@
{
namespace detail
{
-class BOOST_TASK_DECL worker
+class worker
{
private:
static thread_specific_ptr< worker > tss_;
Modified: sandbox/task/boost/task/detail/worker_group.hpp
==============================================================================
--- sandbox/task/boost/task/detail/worker_group.hpp (original)
+++ sandbox/task/boost/task/detail/worker_group.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -15,7 +15,6 @@
#include <boost/multi_index/random_access_index.hpp>
#include <boost/thread.hpp>
-#include <boost/task/detail/config.hpp>
#include <boost/task/detail/worker.hpp>
#include <boost/config/abi_prefix.hpp>
@@ -24,7 +23,7 @@
{
namespace detail
{
-class BOOST_TASK_DECL worker_group
+class worker_group
{
private:
struct id_idx_tag {};
Modified: sandbox/task/boost/task/detail/wsq.hpp
==============================================================================
--- sandbox/task/boost/task/detail/wsq.hpp (original)
+++ sandbox/task/boost/task/detail/wsq.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -12,7 +12,6 @@
#include <boost/thread/mutex.hpp>
#include <boost/utility.hpp>
-#include <boost/task/detail/config.hpp>
#include <boost/task/detail/pool_callable.hpp>
#include <boost/config/abi_prefix.hpp>
@@ -21,7 +20,7 @@
{
namespace detail
{
-class BOOST_TASK_DECL wsq : private noncopyable
+class wsq : private noncopyable
{
private:
const int initial_size_;
Modified: sandbox/task/boost/task/exceptions.hpp
==============================================================================
--- sandbox/task/boost/task/exceptions.hpp (original)
+++ sandbox/task/boost/task/exceptions.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -10,6 +10,8 @@
#include <stdexcept>
#include <string>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
class invalid_poolsize : public std::invalid_argument
@@ -80,4 +82,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_EXCEPTIONS_H
Modified: sandbox/task/boost/task/fifo.hpp
==============================================================================
--- sandbox/task/boost/task/fifo.hpp (original)
+++ sandbox/task/boost/task/fifo.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -13,6 +13,8 @@
#include <boost/task/detail/pool_callable.hpp>
#include <boost/task/detail/meta.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
struct fifo
@@ -64,4 +66,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_FIFO_H
Modified: sandbox/task/boost/task/handle.hpp
==============================================================================
--- sandbox/task/boost/task/handle.hpp (original)
+++ sandbox/task/boost/task/handle.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -15,6 +15,8 @@
#include <boost/task/exceptions.hpp>
#include <boost/task/id.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
@@ -318,4 +320,6 @@
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_HANDLE_H
Modified: sandbox/task/boost/task/id.hpp
==============================================================================
--- sandbox/task/boost/task/id.hpp (original)
+++ sandbox/task/boost/task/id.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -10,6 +10,8 @@
#include <iostream>
#include <string>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template< typename R >
@@ -60,5 +62,7 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_ID_H
Modified: sandbox/task/boost/task/meta.hpp
==============================================================================
--- sandbox/task/boost/task/meta.hpp (original)
+++ sandbox/task/boost/task/meta.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -12,6 +12,8 @@
#include <boost/task/detail/meta.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template< typename Pool >
@@ -30,5 +32,7 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_META_H
Modified: sandbox/task/boost/task/priority.hpp
==============================================================================
--- sandbox/task/boost/task/priority.hpp (original)
+++ sandbox/task/boost/task/priority.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -18,6 +18,8 @@
#include <boost/task/detail/pool_callable.hpp>
#include <boost/task/detail/meta.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template<
@@ -121,4 +123,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_PRIORITY_H
Modified: sandbox/task/boost/task/smart.hpp
==============================================================================
--- sandbox/task/boost/task/smart.hpp (original)
+++ sandbox/task/boost/task/smart.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -17,6 +17,8 @@
#include <boost/task/detail/pool_callable.hpp>
#include <boost/task/detail/meta.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template<
@@ -165,4 +167,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_SMART_H
Modified: sandbox/task/boost/task/static_pool.hpp
==============================================================================
--- sandbox/task/boost/task/static_pool.hpp (original)
+++ sandbox/task/boost/task/static_pool.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -33,6 +33,8 @@
#include <boost/task/task.hpp>
#include <boost/task/watermark.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template< typename Channel >
@@ -319,5 +321,7 @@
};
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_STATIC_POOL_H
Modified: sandbox/task/boost/task/task.hpp
==============================================================================
--- sandbox/task/boost/task/task.hpp (original)
+++ sandbox/task/boost/task/task.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -25,6 +25,8 @@
#include <boost/task/handle.hpp>
#include <boost/task/id.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
@@ -275,4 +277,6 @@
}}
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_TASK_H
Modified: sandbox/task/boost/task/unbounded_channel.hpp
==============================================================================
--- sandbox/task/boost/task/unbounded_channel.hpp (original)
+++ sandbox/task/boost/task/unbounded_channel.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -21,6 +21,8 @@
#include <boost/task/detail/pool_callable.hpp>
#include <boost/task/exceptions.hpp>
+#include <boost/config/abi_prefix.hpp>
+
namespace boost { namespace task
{
template< typename SchedulingPolicy >
@@ -274,4 +276,6 @@
};
} }
+#include <boost/config/abi_suffix.hpp>
+
#endif // BOOST_TASK_UNBOUNDED_CHANNEL_H
Modified: sandbox/task/boost/task/utility.hpp
==============================================================================
--- sandbox/task/boost/task/utility.hpp (original)
+++ sandbox/task/boost/task/utility.hpp 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -19,7 +19,7 @@
{
namespace detail
{
-struct BOOST_TASK_DECL time_reached
+struct time_reached
{
system_time abs_time;
@@ -31,7 +31,7 @@
{ return get_system_time() >= abs_time; }
};
-class BOOST_TASK_DECL once_false
+class once_false
{
private:
bool result_;
@@ -71,11 +71,11 @@
}
inline
-BOOST_TASK_DECL bool runs_in_pool()
+bool runs_in_pool()
{ return task::detail::worker::tss_get() != 0; }
inline
-BOOST_TASK_DECL thread::id worker_id()
+thread::id worker_id()
{
task::detail::worker * w( task::detail::worker::tss_get() );
BOOST_ASSERT( w);
@@ -83,7 +83,7 @@
}
inline
-BOOST_TASK_DECL void delay( system_time abs_time)
+void delay( system_time abs_time)
{
if ( runs_in_pool() )
{
@@ -99,7 +99,7 @@
{ delay( get_system_time() + rel_time); }
inline
-BOOST_TASK_DECL void yield()
+void yield()
{
if ( runs_in_pool() )
{
@@ -111,7 +111,7 @@
}
inline
-BOOST_TASK_DECL void interrupt()
+void interrupt()
{
task::detail::worker * w( task::detail::worker::tss_get() );
BOOST_ASSERT( w);
Modified: sandbox/task/libs/task/doc/overview.qbk
==============================================================================
--- sandbox/task/libs/task/doc/overview.qbk (original)
+++ sandbox/task/libs/task/doc/overview.qbk 2009-05-31 14:04:48 EDT (Sun, 31 May 2009)
@@ -41,7 +41,7 @@
* N2802: A plea to reconsider detach-on-destruction for thread objects [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2802.html] written by Hans-J. Boehm.
-* mailing list C++task-force
+* mailing list of C++ standard committee's Library Working Group
* [@http://herbsutter.wordpress.com 'Sutterâs Mill'] by Herb Sutter
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