#include <thread_manager.hpp>
Move-only RAII token returned by ThreadManager::add_daemon. On destruction, requests stop on the underlying jthread and joins it, then removes it from the registry. A default-constructed handle owns nothing and is safe to destroy.
Definition at line 91 of file thread_manager.hpp.
◆ DaemonHandle() [1/3]
| libstp::threading::ThreadManager::DaemonHandle::DaemonHandle |
( |
| ) |
|
|
defaultnoexcept |
◆ ~DaemonHandle()
| libstp::threading::ThreadManager::DaemonHandle::~DaemonHandle |
( |
| ) |
|
|
inline |
◆ DaemonHandle() [2/3]
| libstp::threading::ThreadManager::DaemonHandle::DaemonHandle |
( |
const DaemonHandle & | | ) |
|
|
delete |
◆ DaemonHandle() [3/3]
| libstp::threading::ThreadManager::DaemonHandle::DaemonHandle |
( |
DaemonHandle && | other | ) |
|
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ owns_thread()
| bool libstp::threading::ThreadManager::DaemonHandle::owns_thread |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ stop()
| void libstp::threading::ThreadManager::DaemonHandle::stop |
( |
| ) |
|
|
inlinenoexcept |
Stop and join the daemon now (idempotent). Subsequent calls and the destructor become no-ops.
Definition at line 122 of file thread_manager.hpp.
◆ ThreadManager
| friend class ThreadManager |
|
friend |
The documentation for this class was generated from the following file:
- /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-threading/include/threading/thread_manager.hpp