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 template <class Thread>
25 void operator()(Thread& t)
31 struct detach_if_joinable
33 template <class Thread>
34 void operator()(Thread& t)
43 struct join_if_joinable
45 template <class Thread>
46 void operator()(Thread& t)
55 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
56 struct interrupt_and_join_if_joinable
58 template <class Thread>
59 void operator()(Thread& t)
70 #include <boost/config/abi_suffix.hpp>