1 /* Copyright (c) 2007-2014. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include <simgrid_config.h>
9 #include "../simix/smx_private.h"
16 typedef enum e_mc_request_type {
20 } e_mc_request_type_t;
22 int MC_request_depend(smx_simcall_t req1, smx_simcall_t req2);
23 char* MC_request_to_string(smx_simcall_t req, int value, e_mc_request_type_t type);
24 unsigned int MC_request_testany_fail(smx_simcall_t req);
25 /*int MC_waitany_is_enabled_by_comm(smx_req_t req, unsigned int comm);*/
26 int MC_request_is_visible(smx_simcall_t req);
28 /** Can this requests can be executed.
30 * Most requests are always enabled but WAIT and WAITANY
31 * are not always enabled: a WAIT where the communication does not
32 * have both a source and a destination yet is not enabled
33 * (unless timeout is enabled in the wait and enabeld in SimGridMC).
35 int MC_request_is_enabled(smx_simcall_t req);
36 int MC_request_is_enabled_by_idx(smx_simcall_t req, unsigned int idx);
38 /** Is the process ready to execute its simcall?
40 * This is true if the request associated with the process is ready.
42 int MC_process_is_enabled(smx_process_t process);
44 char *MC_request_get_dot_output(smx_simcall_t req, int value);