X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/afb325ee2d64aeaf5eba713aacfce666f90da656..2489210b4ea8d03fbece8db288ef9e3ff6725723:/src/msg/msg_private.h?ds=sidebyside diff --git a/src/msg/msg_private.h b/src/msg/msg_private.h index a83c36c687..e70810557e 100644 --- a/src/msg/msg_private.h +++ b/src/msg/msg_private.h @@ -120,7 +120,7 @@ XBT_PUBLIC_DATA(MSG_Global_t) msg_global; #endif msg_host_t __MSG_host_create(smx_host_t workstation); -void __MSG_host_destroy(msg_host_priv_t host); +void __MSG_host_destroy(msg_host_t host); void MSG_process_cleanup_from_SIMIX(smx_process_t smx_proc); void MSG_process_create_from_SIMIX(smx_process_t *process, const char *name, @@ -134,6 +134,13 @@ void _MSG_action_exit(void); void MSG_post_create_environment(void); +static inline void *msg_host_resource_priv(const void *host) { + return xbt_lib_get_level((void *)host, MSG_HOST_LEVEL); +} + +void MSG_host_add_task(msg_host_t host, msg_task_t task); +void MSG_host_del_task(msg_host_t host, msg_task_t task); + /********** Tracing **********/ /* declaration of instrumentation functions from msg_task_instr.c */ void TRACE_msg_set_task_category(msg_task_t task, const char *category);