A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yet another cleaning pass
[simgrid.git]
/
examples
/
msg
/
chainsend
/
peer.h
diff --git
a/examples/msg/chainsend/peer.h
b/examples/msg/chainsend/peer.h
index
8727e15
..
4ed5bcc
100644
(file)
--- a/
examples/msg/chainsend/peer.h
+++ b/
examples/msg/chainsend/peer.h
@@
-1,8
+1,14
@@
-#ifndef KADEPLOY_PEER_H
-#define KADEPLOY_PEER_H
+/* Copyright (c) 2012-2015. The SimGrid Team.
+ * All rights reserved. */
-#include "msg/msg.h"
-#include "xbt/sysdep.h"
+/* 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. */
+
+#ifndef PEER_H
+#define PEER_H
+
+#include "simgrid/msg.h"
+#include "xbt/dynar.h"
#include "messages.h"
#include "common.h"
#include "messages.h"
#include "common.h"
@@
-12,14
+18,14
@@
/* Peer struct */
typedef struct s_peer {
int init;
/* Peer struct */
typedef struct s_peer {
int init;
- c
onst c
har *prev;
- c
onst c
har *next;
+ char *prev;
+ char *next;
char *me;
int pieces;
unsigned long long bytes;
xbt_dynar_t pending_recvs;
xbt_dynar_t pending_sends;
char *me;
int pieces;
unsigned long long bytes;
xbt_dynar_t pending_recvs;
xbt_dynar_t pending_sends;
- int close_asap; /* TODO: unused */
+ unsigned int total_pieces;
} s_peer_t, *peer_t;
/* Peer: helper functions */
} s_peer_t, *peer_t;
/* Peer: helper functions */
@@
-33,4
+39,4
@@
void peer_print_stats(peer_t p, float elapsed_time);
int peer(int argc, char *argv[]);
int peer(int argc, char *argv[]);
-#endif /*
KADEPLOY_
PEER_H */
+#endif /* PEER_H */