X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/983ca84f3ac2d74ba56145026d89bd11f3f096e5:/include/simgrid/s4u/channel.hpp..8b0ff1210013395dca41357e553888693f4f6816:/include/simgrid/s4u/mailbox.hpp diff --git a/include/simgrid/s4u/channel.hpp b/include/simgrid/s4u/mailbox.hpp similarity index 51% rename from include/simgrid/s4u/channel.hpp rename to include/simgrid/s4u/mailbox.hpp index 1c3abd2535..c76a4d9ec2 100644 --- a/include/simgrid/s4u/channel.hpp +++ b/include/simgrid/s4u/mailbox.hpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SIMGRID_S4U_CHANNEL_HPP -#define SIMGRID_S4U_CHANNEL_HPP +#ifndef SIMGRID_S4U_MAILBOX_HPP +#define SIMGRID_S4U_MAILBOX_HPP #include @@ -13,31 +13,33 @@ namespace simgrid { namespace s4u { -/** @brief Channel +/** @brief Mailboxes * * Rendez-vous point for network communications, similar to URLs on which you could post and retrieve data. - * They are not network locations (you can post and retrieve on a given mailbox from anywhere on the network). + * They are not network locations: you can post and retrieve on a given mailbox from anywhere on the network. + * You can access any mailbox without any latency. The network delay are only related to the location of the + * sender and receiver. */ -class Channel { +class Mailbox { friend Process; private: - Channel(const char*name, smx_rdv_t inferior); + Mailbox(const char*name, smx_rdv_t inferior); public: - ~Channel(); + ~Mailbox(); protected: smx_rdv_t getInferior() { return p_inferior; } public: - /** Retrieve the channel associated to the given string */ - static Channel *byName(const char *name); + /** Retrieve the mailbox associated to the given string */ + static Mailbox *byName(const char *name); private: std::string p_name; smx_rdv_t p_inferior; - static boost::unordered_map *channels; + static boost::unordered_map *channels; }; }} // namespace simgrid::s4u -#endif /* SIMGRID_S4U_CHANNEL_HPP */ +#endif /* SIMGRID_S4U_MAILBOX_HPP */