1 // Distributed under the Boost Software License, Version 1.0. (See
2 // accompanying file LICENSE_1_0.txt or copy at
3 // http://www.boost.org/LICENSE_1_0.txt)
4 // (C) Copyright 2009-2012 Anthony Williams
5 // (C) Copyright 2012 Vicente J. Botet Escriba
7 // Based on the Anthony's idea of scoped_thread in CCiA
9 #ifndef BOOST_THREAD_THREAD_FUNCTORS_HPP
10 #define BOOST_THREAD_THREAD_FUNCTORS_HPP
12 #include <boost/thread/detail/config.hpp>
13 #include <boost/thread/detail/delete.hpp>
14 #include <boost/thread/detail/move.hpp>
15 #include <boost/thread/thread_only.hpp>
17 #include <boost/config/abi_prefix.hpp>
24 void operator()(thread& t)
30 struct join_if_joinable
32 void operator()(thread& t)
41 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
42 struct interrupt_and_join_if_joinable
44 void operator()(thread& t)
55 #include <boost/config/abi_suffix.hpp>