qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::SharedCoreCommunication Class Reference

Manages inter-core communication infrastructure (mailboxes). More...

#include <Main.h>

Inheritance diagram for qb::SharedCoreCommunication:
Collaboration diagram for qb::SharedCoreCommunication:

Public Member Functions

 SharedCoreCommunication (CoreInitializerMap const &core_initializers) noexcept
bool send (Event const &event) const noexcept
 Send an event to the mailbox of its destination VirtualCore.
Mailbox & getMailBox (CoreId id) const noexcept
 Get the mailbox for a specific VirtualCore.
CoreId getNbCore () const noexcept
 Get the number of VirtualCores configured in the system.

Detailed Description

Manages inter-core communication infrastructure (mailboxes).

This class is an internal component of qb::Main. It sets up and owns the MPSC mailboxes used by VirtualCores to send events to each other. It is not typically interacted with directly by application code.