Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::thread_guard< CallableThread > Class Template Reference

Non-copyable RAII scoped thread guard joiner which join the thread if joinable when destroyed. More...

#include <thread_guard.hpp>

Public Member Functions

 thread_guard (thread &t)
 
 ~thread_guard ()
 

Detailed Description

template<class CallableThread = join_if_joinable>
class boost::thread_guard< CallableThread >

Non-copyable RAII scoped thread guard joiner which join the thread if joinable when destroyed.

Constructor & Destructor Documentation

template<class CallableThread = join_if_joinable>
boost::thread_guard< CallableThread >::thread_guard ( thread &  t)
inlineexplicit
template<class CallableThread = join_if_joinable>
boost::thread_guard< CallableThread >::~thread_guard ( )
inline

The documentation for this class was generated from the following file: