1 /* Copyright (c) 2008-2017. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_MC_BASE_H
7 #define SIMGRID_MC_BASE_H
9 #include "simgrid/forward.h"
18 /** Execute everything which is invisible
20 * Execute all the processes that are ready to run and all invisible simcalls
21 * iteratively until there doesn't remain any. At this point, the function
22 * returns to the caller which can handle the visible (and ready) simcalls.
24 XBT_PRIVATE void wait_for_requests();
26 XBT_PRIVATE extern std::vector<double> processes_time;
28 /** Execute a given simcall */
29 XBT_PRIVATE void handle_simcall(smx_simcall_t req, int req_num);
31 /** Check if the given simcall is visible
33 * \return `TRUE` or `FALSE`
35 XBT_PRIVATE bool request_is_visible(smx_simcall_t req);