ADTF
3.18.3
|
The looper helper class is a managed endless loop, which can be suspended. More...
Classes | |
struct | Impl |
struct | ImplBase |
Public Types | |
enum class | tLoopState { Destroyed , Suspended , Running } |
Loop state. More... | |
Public Member Functions | |
cLooper () | |
CTOR. | |
cLooper (cLooper &&) | |
cLooper (const cLooper &)=delete | |
template<typename ... Args> | |
cLooper (Args &&... args) | |
template<typename Callable , typename ... Args> | |
cLooper (tLoopState eState, Callable &&pFunc, Args &&... args) | |
cLooper & | operator= (cLooper &&oOther) |
tLoopState | GetState () |
tResult | SetState (tLoopState eState, tBool bWaitForAck=tTrue) |
tVoid | ResetLoop (tLoopState eInitialState=tLoopState::Running) |
tVoid | Swap (cLooper &oOther) |
std::function< void()> | GetCallable () |
Private Types | |
typedef std::shared_ptr< ImplBase > | shared_base_type |
Private Member Functions | |
template<typename Callable > | |
std::shared_ptr< Impl< Callable > > | MakeCallable (Callable &&pFunc) |
Static Private Member Functions | |
static tVoid | CallableHelper (shared_base_type pImpl) |
Private Attributes | |
shared_base_type | m_pCallable |
The looper helper class is a managed endless loop, which can be suspended.
Control this loop within one thread while you manage it within another.
|
strong |