]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_data.h
michael found an error in the definition of the posix sporadic servers so i replaced...
[frescor/fna.git] / src_frescan / frescan_data.h
index b857d8776d0b140cea8222da0d3743c871e08147..2c7070c195f144e4c826b067a28ad29d326cafe1 100644 (file)
@@ -35,7 +35,6 @@
 #include "frescan.h"         // frescan_node_t, _prio_t, _budget_t
 #include "frescan_config.h"  // FRESCAN_MLOCK_T, FRESCAN_MX_XXX
 #include "frescan_packets.h" // frescan_packet_t
-#include "frescan_servers_replenishments.h" // frescan_repl_op_t
 
 /**
  * frescan_repl_op_t - a replenishment operation
@@ -80,7 +79,9 @@ typedef struct {
  * @repl_list: the list of pending replenishment operations
  * @repl_timer: the timer for the replenishments associated to this server
  *     NOTE: we could use a single timer for all but for now this is simpler
+ * @act_time: the last activation time for the server
  * @packet_list: the packets enqueued on this server
+ * @servers_list: the list of servers
  */
 
 typedef struct {
@@ -92,6 +93,7 @@ typedef struct {
         frescan_budget_t  pending_packets;
         frescan_repl_op_t replenishments;
         timer_t           repl_timer;
+        struct timespec   act_time;
         frescan_packet_t  packet_list;
         struct list_head  servers_list;
 } frescan_server_data_t;