Ring Daemon 16.0.0
|
#include <threadloop.h>
Public Member Functions | |
void | interrupt () noexcept |
InterruptedThreadLoop (const std::function< bool()> &setup, const std::function< void()> &process, const std::function< void()> &cleanup) | |
void | stop () override |
template<typename Pred > | |
void | wait (Pred &&pred) |
template<typename Rep , typename Period > | |
void | wait_for (const std::chrono::duration< Rep, Period > &rel_time) |
template<typename Rep , typename Period , typename Pred > | |
bool | wait_for (const std::chrono::duration< Rep, Period > &rel_time, Pred &&pred) |
![]() | |
void | exit () |
std::thread::id | get_id () const noexcept |
bool | isRunning () const noexcept |
bool | isStopping () const noexcept |
void | join () |
void | start () |
ThreadLoop (const std::function< bool()> &setup, const std::function< void()> &process, const std::function< void()> &cleanup) | |
void | waitForCompletion () |
virtual | ~ThreadLoop () |
Additional Inherited Members | |
![]() | |
enum class | ThreadState { READY , RUNNING , STOPPING } |
Definition at line 76 of file threadloop.h.
|
inline |
Definition at line 79 of file threadloop.h.
|
inlinenoexcept |
Definition at line 87 of file threadloop.h.
|
overridevirtual |
Reimplemented from jami::ThreadLoop.
Definition at line 126 of file threadloop.cpp.
References jami::ThreadLoop::stop().
Definition at line 110 of file threadloop.h.
References jami::emitSignal(), jami::ThreadLoop::get_id(), and jami::ThreadLoop::isStopping().
|
inline |
Definition at line 90 of file threadloop.h.
References jami::emitSignal(), jami::ThreadLoop::get_id(), and jami::ThreadLoop::isStopping().
|
inline |
Definition at line 100 of file threadloop.h.
References jami::emitSignal(), jami::ThreadLoop::get_id(), and jami::ThreadLoop::isStopping().