|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Wrapper that posts cleanup work to a mailbox when destroyed. More...
#include <src/thread_safe.h>
Public Member Functions | |
| template<class... Args> | |
| post_t (mail_t mail, Args &&...args) | |
| Construct a message-posting wrapper around an existing type. | |
Public Attributes | |
| mail_t | |
| Mailbox kept alive until the posted object is destroyed. | |
Wrapper that posts cleanup work to a mailbox when destroyed.
|
inline |
Construct a message-posting wrapper around an existing type.
| Mailbox used to exchange messages with worker threads. | |
| args | Arguments forwarded to the wrapped type constructor. |