xbt_dict_t properties)
{
- SIMIX_req_process_create(name, code, NULL,
+ smx_process_t process;
+ SIMIX_req_process_create(&process, name, code, NULL,
gras_os_myname(), argc, argv, properties);
}
trp_pd->meas_selectable_sockets =
xbt_queue_new(0, sizeof(gras_socket_t));
- VERB2("Creating process '%s' (%d)", SIMIX_process_self_get_name(),
+ XBT_VERB("Creating process '%s' (%d)", SIMIX_process_self_get_name(),
gras_os_getpid());
}
xbt_queue_free(&trp_pd->meas_selectable_sockets);
- xbt_assert0(hd, "Run gras_process_init (ie, gras_init)!!");
+ xbt_assert(hd, "Run gras_process_init (ie, gras_init)!!");
- VERB2("GRAS: Finalizing process '%s' (%d)",
+ XBT_VERB("GRAS: Finalizing process '%s' (%d)",
SIMIX_req_process_get_name(SIMIX_process_self()), gras_os_getpid());
if (xbt_dynar_length(msg_pd->msg_queue)) {
unsigned int cpt;
s_gras_msg_t msg;
- WARN2
+ XBT_WARN
("process %d terminated, but %ld messages are still queued. Message list:",
gras_os_getpid(), xbt_dynar_length(msg_pd->msg_queue));
xbt_dynar_foreach(msg_pd->msg_queue, cpt, msg) {
- WARN5(" Message %s (%s) from %s@%s:%d", msg.type->name,
+ XBT_WARN(" Message %s (%s) from %s@%s:%d", msg.type->name,
e_gras_msg_kind_names[msg.kind],
gras_socket_peer_proc(msg.expe),
gras_socket_peer_name(msg.expe),
/* if each process has its sockets list, we need to close them when the
process finish */
xbt_dynar_foreach(sockets, cursor, sock_iter) {
- VERB1("Closing the socket %p left open on exit. Maybe a socket leak?",
+ XBT_VERB("Closing the socket %p left open on exit. Maybe a socket leak?",
sock_iter);
gras_socket_close(sock_iter);
}
gras_procdata_t *pd =
(gras_procdata_t *) SIMIX_req_process_get_data(SIMIX_process_self());
- xbt_assert0(pd, "Run gras_process_init! (ie, gras_init)");
+ xbt_assert(pd, "Run gras_process_init! (ie, gras_init)");
return pd;
}
{
gras_procdata_t *pd = (gras_procdata_t *) SIMIX_req_process_get_data(p);
- xbt_assert2(pd,
+ xbt_assert(pd,
"process '%s' on '%s' didn't run gras_process_init! (ie, gras_init)",
SIMIX_req_process_get_name(p),
SIMIX_req_host_get_name(SIMIX_req_process_get_host(p)));
name);
}
-/** @brief retrieve the host properties dictionnary
+/** @brief retrieve the host properties dictionary
* @warning it's the original one, not a copy. Don't mess with it
*/
xbt_dict_t gras_os_host_properties(void)