]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/s4u/Link.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
improve the doc of condition variables
[simgrid.git] / include / simgrid / s4u / Link.hpp
index 566430e5e24519072dc0458049c86f8e3e861101..7fc72cca1b249282e169df8dc560393a31154fdf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved.          */
 
 /* 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. */
@@ -52,13 +52,13 @@ public:
   double get_latency() const;
 
   /** @brief Describes how the link is shared between flows */
-  SharingPolicy get_sharing_policy();
+  SharingPolicy get_sharing_policy() const;
 
   /** @brief Returns the current load (in flops per second) */
-  double get_usage();
+  double get_usage() const;
 
   /** @brief Check if the Link is used (at least one flow uses the link) */
-  bool is_used();
+  bool is_used() const;
 
   void turn_on();
   bool is_on() const;