SimGrid  3.18
Versatile Simulation of Distributed Systems
s4u_actor.cpp File Reference
#include "xbt/log.h"
#include "simgrid/s4u/Actor.hpp"
#include "simgrid/s4u/Comm.hpp"
#include "simgrid/s4u/Exec.hpp"
#include "simgrid/s4u/Host.hpp"
#include "simgrid/s4u/Mailbox.hpp"
#include "src/kernel/context/Context.hpp"
#include "src/simix/smx_private.hpp"
#include <sstream>

Namespaces

 simgrid
 Alltoall Bruck.
 
 simgrid::s4u
 
 simgrid::s4u::this_actor
 Static methods working on the current actor (see s4u::Actor)
 

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (s4u_actor, "S4U actors")
 
void simgrid::s4u::intrusive_ptr_add_ref (Actor *actor)
 
void simgrid::s4u::intrusive_ptr_release (Actor *actor)
 
bool simgrid::s4u::this_actor::isMaestro ()
 Returns true if run from the kernel mode, and false if run from a real actor. More...
 
void simgrid::s4u::this_actor::sleep_for (double duration)
 Block the actor sleeping for that amount of seconds (may throws hostFailure) More...
 
void simgrid::s4u::this_actor::yield ()
 yield the actor. More...
 
void simgrid::s4u::this_actor::sleep_until (double timeout)
 
void simgrid::s4u::this_actor::execute (double flop)
 Block the actor, computing the given amount of flops. More...
 
void simgrid::s4u::this_actor::execute (double flop, double priority)
 Block the actor, computing the given amount of flops at the given priority. More...
 
void simgrid::s4u::this_actor::parallel_execute (int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double timeout)
 
void simgrid::s4u::this_actor::parallel_execute (int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount)
 
ExecPtr simgrid::s4u::this_actor::exec_init (double flops_amounts)
 
ExecPtr simgrid::s4u::this_actor::exec_async (double flops_amounts)
 
voidsimgrid::s4u::this_actor::recv (MailboxPtr chan)
 
voidsimgrid::s4u::this_actor::recv (MailboxPtr chan, double timeout)
 
void simgrid::s4u::this_actor::send (MailboxPtr chan, void *payload, double simulatedSize)
 
void simgrid::s4u::this_actor::send (MailboxPtr chan, void *payload, double simulatedSize, double timeout)
 
CommPtr simgrid::s4u::this_actor::isend (MailboxPtr chan, void *payload, double simulatedSize)
 
CommPtr simgrid::s4u::this_actor::irecv (MailboxPtr chan, void **data)
 
aid_t simgrid::s4u::this_actor::getPid ()
 Returns the actor ID of the current actor). More...
 
aid_t simgrid::s4u::this_actor::getPpid ()
 Returns the ancestor's actor ID of the current actor. More...
 
std::string simgrid::s4u::this_actor::getName ()
 Returns the name of the current actor. More...
 
const char * simgrid::s4u::this_actor::getCname ()
 Returns the name of the current actor as a C string. More...
 
Host * simgrid::s4u::this_actor::getHost ()
 Returns the name of the host on which the actor is running. More...
 
void simgrid::s4u::this_actor::suspend ()
 Suspend the actor. More...
 
void simgrid::s4u::this_actor::resume ()
 Resume the actor. More...
 
bool simgrid::s4u::this_actor::isSuspended ()
 
void simgrid::s4u::this_actor::kill ()
 kill the actor. More...
 
void simgrid::s4u::this_actor::onExit (int_f_pvoid_pvoid_t fun, void *data)
 Add a function to the list of "on_exit" functions. More...
 
void simgrid::s4u::this_actor::migrate (Host *new_host)
 Migrate the actor to a new host. More...
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_CATEGORY()

XBT_LOG_NEW_DEFAULT_CATEGORY ( s4u_actor  ,
"S4U actors"   
)