#include <mailbox.hpp>
Definition at line 15 of file mailbox.hpp.
◆ Mailbox() [1/2]
mbgl::Mailbox::Mailbox |
( |
| ) |
|
Create a "holding" mailbox, messages to which will remain queued, unconsumed, until the mailbox is associated with a Scheduler using start(). This allows a Mailbox object to be created on one thread and later transferred to a different target thread that may not yet exist.
◆ Mailbox() [2/2]
◆ close()
void mbgl::Mailbox::close |
( |
| ) |
|
◆ isOpen()
bool mbgl::Mailbox::isOpen |
( |
| ) |
const |
◆ makeClosure()
static std::function<void()> mbgl::Mailbox::makeClosure |
( |
std::weak_ptr< Mailbox > |
| ) |
|
|
static |
◆ maybeReceive()
static void mbgl::Mailbox::maybeReceive |
( |
const std::weak_ptr< Mailbox > & |
| ) |
|
|
static |
◆ open()
void mbgl::Mailbox::open |
( |
Scheduler & |
scheduler_ | ) |
|
Attach the given scheduler to this mailbox and begin processing messages sent to it. The mailbox must be a "holding" mailbox, as created by the default constructor Mailbox().
◆ push()
void mbgl::Mailbox::push |
( |
std::unique_ptr< Message > |
| ) |
|
◆ receive()
void mbgl::Mailbox::receive |
( |
| ) |
|
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/actor/mailbox.hpp