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
please sonar, even if it is really pesky sometimes
[simgrid.git]
/
src
/
simix
/
smx_network_private.h
diff --git
a/src/simix/smx_network_private.h
b/src/simix/smx_network_private.h
index
cf56518
..
2e12211
100644
(file)
--- a/
src/simix/smx_network_private.h
+++ b/
src/simix/smx_network_private.h
@@
-7,19
+7,14
@@
#ifndef _SIMIX_NETWORK_PRIVATE_H
#define _SIMIX_NETWORK_PRIVATE_H
#ifndef _SIMIX_NETWORK_PRIVATE_H
#define _SIMIX_NETWORK_PRIVATE_H
-#include <string>
-
-#include <boost/intrusive_ptr.hpp>
#include <boost/circular_buffer.hpp>
#include <boost/circular_buffer.hpp>
-#include <xbt/base.h>
-
-#include <simgrid/s4u/Mailbox.hpp>
+#include "simgrid/s4u/Mailbox.hpp"
-#include "simgrid/simix.h"
-#include "popping_private.h"
#include "src/simix/ActorImpl.hpp"
#include "src/simix/ActorImpl.hpp"
+
+#define MAX_MAILBOX_SIZE 10000000
namespace simgrid {
namespace simix {
namespace simgrid {
namespace simix {
@@
-27,7
+22,7
@@
namespace simix {
class Mailbox {
public:
class Mailbox {
public:
- Mailbox(const char* name) : piface_(this), name(xbt_strdup(name)), comm_queue(
1000), done_comm_queue(1000
) {}
+ Mailbox(const char* name) : piface_(this), name(xbt_strdup(name)), comm_queue(
MAX_MAILBOX_SIZE), done_comm_queue(MAX_MAILBOX_SIZE
) {}
~Mailbox() {
xbt_free(name);
}
~Mailbox() {
xbt_free(name);
}