Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix missing doc for Tasks
[simgrid.git] / examples / c / app-chainsend / chainsend.h
index 5efdf74..86a86aa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2021. The SimGrid Team.
+/* Copyright (c) 2012-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -7,6 +7,7 @@
 #ifndef CHAINSEND_H
 #define CHAINSEND_H
 
+#include "simgrid/activity_set.h"
 #include "simgrid/actor.h"
 #include "simgrid/comm.h"
 #include "simgrid/engine.h"
@@ -16,8 +17,7 @@
 
 #include "xbt/log.h"
 #include "xbt/str.h"
-
-#include <stdlib.h>
+#include "xbt/sysdep.h"
 
 /* Connection parameters */
 #define MAX_PENDING_COMMS 256
@@ -31,7 +31,7 @@ typedef struct s_broadcaster {
   unsigned int piece_count;
   sg_mailbox_t first;
   sg_mailbox_t* mailboxes;
-  sg_comm_t* pending_sends;
+  sg_activity_set_t pending_sends;
 } s_broadcaster_t;
 
 typedef s_broadcaster_t* broadcaster_t;
@@ -55,8 +55,8 @@ typedef struct s_peer {
   unsigned long long received_bytes;
   unsigned int received_pieces;
   unsigned int total_pieces;
-  sg_comm_t* pending_recvs;
-  sg_comm_t* pending_sends;
+  sg_activity_set_t pending_recvs;
+  sg_activity_set_t pending_sends;
 } s_peer_t;
 
 typedef s_peer_t* peer_t;