SimGrid  3.18
Versatile Simulation of Distributed Systems
simgrid::kernel::activity::MailboxImpl Class Reference

Detailed Description

Implementation of the simgrid::s4u::Mailbox.

#include <MailboxImpl.hpp>

Public Member Functions

const simgrid::xbt::stringgetName () const
 
const char * getCname () const
 
void setReceiver (s4u::ActorPtr actor)
 set the receiver of the mailbox to allow eager sends More...
 
void push (activity::CommImplPtr comm)
 Pushes a communication activity into a mailbox. More...
 
void remove (smx_activity_t activity)
 Removes a communication activity from a mailbox. More...
 

Static Public Member Functions

static MailboxImplbyNameOrNull (const char *name)
 Returns the mailbox of that name, or nullptr. More...
 
static MailboxImplbyNameOrCreate (const char *name)
 Returns the mailbox of that name, newly created on need. More...
 

Public Attributes

simgrid::s4u::Mailbox piface_
 
simgrid::xbt::string name_
 
simgrid::simix::ActorImplPtr permanent_receiver
 
boost::circular_buffer_space_optimized< smx_activity_tcomm_queue
 
boost::circular_buffer_space_optimized< smx_activity_tdone_comm_queue
 

Member Function Documentation

◆ getName()

const simgrid::xbt::string& simgrid::kernel::activity::MailboxImpl::getName ( ) const
inline

◆ getCname()

const char* simgrid::kernel::activity::MailboxImpl::getCname ( ) const
inline

◆ byNameOrNull()

MailboxImpl * simgrid::kernel::activity::MailboxImpl::byNameOrNull ( const char *  name)
static

Returns the mailbox of that name, or nullptr.

◆ byNameOrCreate()

MailboxImpl * simgrid::kernel::activity::MailboxImpl::byNameOrCreate ( const char *  name)
static

Returns the mailbox of that name, newly created on need.

◆ setReceiver()

void simgrid::kernel::activity::MailboxImpl::setReceiver ( s4u::ActorPtr  actor)

set the receiver of the mailbox to allow eager sends

Parameters
actorThe receiving dude

◆ push()

void simgrid::kernel::activity::MailboxImpl::push ( activity::CommImplPtr  comm)

Pushes a communication activity into a mailbox.

Parameters
commWhat to add

◆ remove()

void simgrid::kernel::activity::MailboxImpl::remove ( smx_activity_t  activity)

Removes a communication activity from a mailbox.

Parameters
activityWhat to remove

Member Data Documentation

◆ piface_

simgrid::s4u::Mailbox simgrid::kernel::activity::MailboxImpl::piface_

◆ name_

simgrid::xbt::string simgrid::kernel::activity::MailboxImpl::name_

◆ permanent_receiver

simgrid::simix::ActorImplPtr simgrid::kernel::activity::MailboxImpl::permanent_receiver

◆ comm_queue

boost::circular_buffer_space_optimized<smx_activity_t> simgrid::kernel::activity::MailboxImpl::comm_queue

◆ done_comm_queue

boost::circular_buffer_space_optimized<smx_activity_t> simgrid::kernel::activity::MailboxImpl::done_comm_queue

The documentation for this class was generated from the following files: