Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const methods.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 2 Mar 2022 22:03:38 +0000 (23:03 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 2 Mar 2022 22:03:38 +0000 (23:03 +0100)
include/simgrid/s4u/Comm.hpp
src/kernel/activity/CommImpl.hpp

index d43131a..a08e5f7 100644 (file)
@@ -119,7 +119,7 @@ public:
    * That's a buffer where the sent data will be copied  */
   CommPtr set_dst_data(void** buff, size_t size);
   /** Retrieve where the data will be copied on the receiver side */
-  void* get_dst_data() { return dst_buff_; }
+  void* get_dst_data() const { return dst_buff_; }
   /** Retrieve the size of the received data. Not to be mixed with @ref Activity::set_remaining()  */
   size_t get_dst_data_size() const { return dst_buff_size_; }
 
index 75b74c0..ad9f4ab 100644 (file)
@@ -55,7 +55,7 @@ public:
   MailboxImpl* get_mailbox() const { return mbox_; }
   long get_mailbox_id() const { return mbox_id_; }
   bool detached() const { return detached_; }
-  bool is_assigned() { return (to_ != nullptr && from_ != nullptr); }
+  bool is_assigned() const { return (to_ != nullptr && from_ != nullptr); }
 
   std::vector<s4u::Link*> get_traversed_links() const;
   void copy_data();