vSMC
vSMC: Scalable Monte Carlo
Public Types | Public Member Functions | List of all members
vsmc::ThreadGuard< ThreadType > Class Template Reference

Strictly scope-based thread ownership wrapper. More...

#include <vsmc/thread/thread_guard.hpp>

Public Types

typedef ThreadType thread_type
 

Public Member Functions

 ThreadGuard () noexcept
 
 ThreadGuard (const ThreadGuard &)=delete
 
 ThreadGuard (thread_type &&thr) noexcept
 
 ThreadGuard (ThreadGuard &&other) noexcept
 
 ~ThreadGuard () noexcept
 
ThreadGuardoperator= (const ThreadGuard &)=delete
 
ThreadGuardoperator= (ThreadGuard &&other) noexcept
 

Detailed Description

template<typename ThreadType>
class vsmc::ThreadGuard< ThreadType >

Strictly scope-based thread ownership wrapper.

Definition at line 42 of file thread_guard.hpp.

Member Typedef Documentation

template<typename ThreadType >
typedef ThreadType vsmc::ThreadGuard< ThreadType >::thread_type

Definition at line 46 of file thread_guard.hpp.

Constructor & Destructor Documentation

template<typename ThreadType >
vsmc::ThreadGuard< ThreadType >::ThreadGuard ( )
inlinenoexcept

Definition at line 48 of file thread_guard.hpp.

template<typename ThreadType >
vsmc::ThreadGuard< ThreadType >::ThreadGuard ( const ThreadGuard< ThreadType > &  )
delete
template<typename ThreadType >
vsmc::ThreadGuard< ThreadType >::ThreadGuard ( thread_type &&  thr)
inlinenoexcept

Definition at line 54 of file thread_guard.hpp.

template<typename ThreadType >
vsmc::ThreadGuard< ThreadType >::ThreadGuard ( ThreadGuard< ThreadType > &&  other)
inlinenoexcept

Definition at line 57 of file thread_guard.hpp.

template<typename ThreadType >
vsmc::ThreadGuard< ThreadType >::~ThreadGuard ( )
inlinenoexcept

Definition at line 63 of file thread_guard.hpp.

Member Function Documentation

template<typename ThreadType >
ThreadGuard& vsmc::ThreadGuard< ThreadType >::operator= ( const ThreadGuard< ThreadType > &  )
delete
template<typename ThreadType >
ThreadGuard& vsmc::ThreadGuard< ThreadType >::operator= ( ThreadGuard< ThreadType > &&  other)
inlinenoexcept

Definition at line 60 of file thread_guard.hpp.