Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86441 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2013-10-26 06:20:13


Author: viboes
Date: 2013-10-26 06:20:13 EDT (Sat, 26 Oct 2013)
New Revision: 86441
URL: http://svn.boost.org/trac/boost/changeset/86441

Log:
Thread: Added a portable copyable/movable thread_pool/executor work.

Added:
   trunk/boost/thread/detail/work.hpp (contents, props changed)

Added: trunk/boost/thread/detail/work.hpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/boost/thread/detail/work.hpp 2013-10-26 06:20:13 EDT (Sat, 26 Oct 2013) (r86441)
@@ -0,0 +1,32 @@
+// (C) Copyright 2013 Vicente J. Botet Escriba
+//
+// 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)
+
+#ifndef BOOST_THREAD_DETAIL_WORK_HPP
+#define BOOST_THREAD_DETAIL_WORK_HPP
+
+#define BOOST_THREAD_USES_NULLARY_FUNCTION_AS_WORK
+
+#ifdef BOOST_THREAD_USES_NULLARY_FUNCTION_AS_WORK
+#include <boost/thread/detail/nullary_function.hpp>
+#else
+#include <boost/thread/detail/function_wrapper.hpp>
+#endif
+
+namespace boost
+{
+ namespace thread_detail
+ {
+
+#ifdef BOOST_THREAD_USES_NULLARY_FUNCTION_AS_WORK
+ typedef detail::nullary_function<void()> work;
+#else
+ typedef detail::function_wrapper work;
+#endif
+ }
+
+} // namespace boost
+
+#endif // BOOST_THREAD_DETAIL_MEMORY_HPP


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