Itoyori  v0.0.1
ityr::ito::thread< T > Class Template Reference

#include <thread.hpp>

Public Member Functions

 thread ()
 
template<typename Fn , typename... Args>
 thread (Fn &&fn, Args &&... args)
 
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename Fn , typename... Args>
 thread (with_callback_t, OnDriftForkCallback on_drift_fork_cb, OnDriftDieCallback on_drift_die_cb, Fn &&fn, Args &&... args)
 
template<typename W , typename Fn , typename... Args>
 thread (workhint< W > wh, Fn &&fn, Args &&... args)
 
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename W , typename Fn , typename... Args>
 thread (with_callback_t, OnDriftForkCallback on_drift_fork_cb, OnDriftDieCallback on_drift_die_cb, workhint< W > wh, Fn &&fn, Args &&... args)
 
 thread (const thread &)=delete
 
threadoperator= (const thread &)=delete
 
 thread (thread &&th)=default
 
threadoperator= (thread &&th)=default
 
template<typename Fn , typename... Args>
void fork (Fn &&fn, Args &&... args)
 
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename Fn , typename... Args>
void fork (with_callback_t, OnDriftForkCallback on_drift_fork_cb, OnDriftDieCallback on_drift_die_cb, Fn &&fn, Args &&... args)
 
template<typename W , typename Fn , typename... Args>
void fork (workhint< W > wh, Fn &&fn, Args &&... args)
 
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename W , typename Fn , typename... Args>
void fork (with_callback_t, OnDriftForkCallback on_drift_fork_cb, OnDriftDieCallback on_drift_die_cb, workhint< W > wh, Fn &&fn, Args &&... args)
 
join ()
 
bool serialized ()
 

Constructor & Destructor Documentation

◆ thread() [1/7]

template<typename T >
ityr::ito::thread< T >::thread ( )
inline

◆ thread() [2/7]

template<typename T >
template<typename Fn , typename... Args>
ityr::ito::thread< T >::thread ( Fn &&  fn,
Args &&...  args 
)
inlineexplicit

◆ thread() [3/7]

template<typename T >
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename Fn , typename... Args>
ityr::ito::thread< T >::thread ( with_callback_t  ,
OnDriftForkCallback  on_drift_fork_cb,
OnDriftDieCallback  on_drift_die_cb,
Fn &&  fn,
Args &&...  args 
)
inline

◆ thread() [4/7]

template<typename T >
template<typename W , typename Fn , typename... Args>
ityr::ito::thread< T >::thread ( workhint< W >  wh,
Fn &&  fn,
Args &&...  args 
)
inline

◆ thread() [5/7]

template<typename T >
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename W , typename Fn , typename... Args>
ityr::ito::thread< T >::thread ( with_callback_t  ,
OnDriftForkCallback  on_drift_fork_cb,
OnDriftDieCallback  on_drift_die_cb,
workhint< W >  wh,
Fn &&  fn,
Args &&...  args 
)
inline

◆ thread() [6/7]

template<typename T >
ityr::ito::thread< T >::thread ( const thread< T > &  )
delete

◆ thread() [7/7]

template<typename T >
ityr::ito::thread< T >::thread ( thread< T > &&  th)
default

Member Function Documentation

◆ fork() [1/4]

template<typename T >
template<typename Fn , typename... Args>
void ityr::ito::thread< T >::fork ( Fn &&  fn,
Args &&...  args 
)
inline

◆ fork() [2/4]

template<typename T >
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename Fn , typename... Args>
void ityr::ito::thread< T >::fork ( with_callback_t  ,
OnDriftForkCallback  on_drift_fork_cb,
OnDriftDieCallback  on_drift_die_cb,
Fn &&  fn,
Args &&...  args 
)
inline

◆ fork() [3/4]

template<typename T >
template<typename OnDriftForkCallback , typename OnDriftDieCallback , typename W , typename Fn , typename... Args>
void ityr::ito::thread< T >::fork ( with_callback_t  ,
OnDriftForkCallback  on_drift_fork_cb,
OnDriftDieCallback  on_drift_die_cb,
workhint< W >  wh,
Fn &&  fn,
Args &&...  args 
)
inline

◆ fork() [4/4]

template<typename T >
template<typename W , typename Fn , typename... Args>
void ityr::ito::thread< T >::fork ( workhint< W >  wh,
Fn &&  fn,
Args &&...  args 
)
inline

◆ join()

template<typename T >
T ityr::ito::thread< T >::join ( )
inline

◆ operator=() [1/2]

template<typename T >
thread& ityr::ito::thread< T >::operator= ( const thread< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
thread& ityr::ito::thread< T >::operator= ( thread< T > &&  th)
default

◆ serialized()

template<typename T >
bool ityr::ito::thread< T >::serialized ( )
inline

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