Static methods working on the current actor (see s4u::Actor)
|
| bool | isMaestro () |
| | Returns true if run from the kernel mode, and false if run from a real actor. More...
|
| |
| void | sleep_for (double duration) |
| | Block the actor sleeping for that amount of seconds (may throws hostFailure) More...
|
| |
| void | sleep_until (double timeout) |
| |
| template<class Rep , class Period > |
| void | sleep_for (std::chrono::duration< Rep, Period > duration) |
| |
| template<class Duration > |
| void | sleep_until (const SimulationTimePoint< Duration > &timeout_time) |
| |
| | XBT_ATTRIB_DEPRECATED_v320 ("Use sleep_for(): v3.20 will turn this warning into an error.") inline void sleep(double duration) |
| |
| void | execute (double flop) |
| | Block the actor, computing the given amount of flops. More...
|
| |
| void * | XBT_ATTRIB_DEPRECATED_v320 ("Use Mailbox::get(): v3.20 will turn this warning into an error.") recv(MailboxPtr chan) |
| | Block the actor until it gets a message from the given mailbox. More...
|
| |
| CommPtr | XBT_ATTRIB_DEPRECATED_v320 ("Use Mailbox::recv_async(): v3.20 will turn this warning into an error.") irecv(MailboxPtr chan |
| |
| void | XBT_ATTRIB_DEPRECATED_v320 ("Use Mailbox::put(): v3.20 will turn this warning into an error.") send(MailboxPtr chan |
| | Block the actor until it delivers a message of the given simulated size to the given mailbox. More...
|
| |
| CommPtr | XBT_ATTRIB_DEPRECATED_v320 ("Use Mailbox::put_async(): v3.20 will turn this warning into an error.") isend(MailboxPtr chan |
| |
| aid_t | getPid () |
| | Returns the actor ID of the current actor (same as pid). More...
|
| |
| aid_t | getPpid () |
| | Returns the ancestor's actor ID of the current actor (same as ppid). More...
|
| |
| std::string | getName () |
| | Returns the name of the current actor. More...
|
| |
| Host * | getHost () |
| | Returns the name of the host on which the process is running. More...
|
| |
| void | suspend () |
| | Suspend the actor. More...
|
| |
| void | resume () |
| | Resume the actor. More...
|
| |
| bool | isSuspended () |
| |
| void | kill () |
| | kill the actor. More...
|
| |
| void | onExit (int_f_pvoid_pvoid_t fun, void *data) |
| | Add a function to the list of "on_exit" functions. More...
|
| |
| void | migrate (Host *new_host) |
| | Migrate the actor to a new host. More...
|
| |
| void * | recv (MailboxPtr chan) |
| |
| void * | recv (MailboxPtr chan, double timeout) |
| |
| void | send (MailboxPtr chan, void *payload, double simulatedSize) |
| |
| void | send (MailboxPtr chan, void *payload, double simulatedSize, double timeout) |
| |
| CommPtr | isend (MailboxPtr chan, void *payload, double simulatedSize) |
| |
| CommPtr | irecv (MailboxPtr chan, void **data) |
| |
| bool simgrid::s4u::this_actor::isMaestro |
( |
| ) |
|
Returns true if run from the kernel mode, and false if run from a real actor.
Everything that is run out of any actor (simulation setup before the engine is run, computing the model evolutions as a result to the actors' action, etc) is run in kernel mode, just as in any operating systems.
In SimGrid, the actor in charge of doing the stuff in kernel mode is called Maestro, because it is the one scheduling when the others should move or wait.