+}
+
+#ifdef HAVE_LATENCY_BOUND_TRACKING
+/**
+ * \brief verify if communication is latency bounded
+ * \param comm The communication
+ */
+XBT_INLINE int SIMIX_communication_is_latency_bounded(smx_comm_t comm)
+{
+ //try to find comm on the list of finished flows
+ uintptr_t key = 0;
+ uintptr_t data = 0;
+ xbt_dict_cursor_t cursor;
+ xbt_dict_foreach(simix_global->latency_limited_dict, cursor, key, data) {
+ DEBUG2("comparing key=%p with comm=%p", (void *) key, (void *) comm);
+ if ((void *) comm == (void *) key) {
+ DEBUG2("key %p found, return value latency limited value %d",
+ (void *) key, (int) data);
+ return (int) data;
+ }
+ }
+
+ DEBUG1("calling SIMIX_action_is_latency_bounded(%p)", comm->act);
+ return SIMIX_action_is_latency_bounded(comm->act);
+}
+#endif