X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f..b58b0ba2f6b92efa234677e19dd998346113504d:/examples/c/app-chainsend/chainsend.h diff --git a/examples/c/app-chainsend/chainsend.h b/examples/c/app-chainsend/chainsend.h index 5efdf74d25..86a86aaad7 100644 --- a/examples/c/app-chainsend/chainsend.h +++ b/examples/c/app-chainsend/chainsend.h @@ -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 +#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;