Wrapper that posts cleanup work to a mailbox when destroyed.
More...
#include <src/thread_safe.h>
|
| template<class... Args> |
| | post_t (mail_t mail, Args &&...args) |
| | Explicitly construct a message-posting wrapper around an existing type.
|
|
|
mail_t | mail |
| | Mailbox kept alive until the posted object is destroyed.
|
template<class T>
class safe::post_t< T >
Wrapper that posts cleanup work to a mailbox when destroyed.
◆ post_t()
template<class T>
template<class... Args>
Explicitly construct a message-posting wrapper around an existing type.
- Parameters
-
| mail | Mailbox used to exchange messages with worker threads. |
| args | Arguments forwarded to the wrapped type constructor. |
The documentation for this class was generated from the following file: