X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d155fd69fa99c97b3a9c86bb7f2e472c2e7332df..f85650eada1424541ff41e4b47d3c194195e9072:/src/msg/msg_host.c diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index 4cced2cf02..ccfc8805e4 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -116,6 +116,23 @@ msg_host_t MSG_host_self(void) return MSG_process_get_host(NULL); } + +/* + * \brief Start the host if it is off + */ +void MSG_host_on(msg_host_t host) +{ + simcall_host_on(host); +} + +/* + * \brief Stop the host if it is on + */ +void MSG_host_off(msg_host_t host) +{ + simcall_host_off(host); +} + /* * \brief Frees private data of a host (internal call only) */ @@ -220,6 +237,17 @@ double MSG_get_host_speed(msg_host_t h) return (simcall_host_get_speed(h)); } + +/** \ingroup m_host_management + * \brief Return the number of core. + */ +int MSG_get_host_core(msg_host_t h) +{ + xbt_assert((h != NULL), "Invalid parameters"); + + return (simcall_host_get_core(h)); +} + /** \ingroup m_host_management * \brief Returns the value of a given host property *