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
[mc] Remove unused declarations
[simgrid.git]
/
src
/
mc
/
Client.cpp
diff --git
a/src/mc/Client.cpp
b/src/mc/Client.cpp
index
fbbbe92
..
c05696f
100644
(file)
--- a/
src/mc/Client.cpp
+++ b/
src/mc/Client.cpp
@@
-14,6
+14,7
@@
#include <xbt/log.h>
#include <xbt/sysdep.h>
#include <xbt/mmalloc.h>
#include <xbt/log.h>
#include <xbt/sysdep.h>
#include <xbt/mmalloc.h>
+#include <xbt/swag.h>
#include "src/internal_config.h"
#include "src/internal_config.h"
@@
-67,7
+68,7
@@
Client* Client::initialize()
client_ = std::unique_ptr<Client>(new simgrid::mc::Client(fd));
// Wait for the model-checker:
client_ = std::unique_ptr<Client>(new simgrid::mc::Client(fd));
// Wait for the model-checker:
- if (ptrace(PTRACE_TRACEME, 0, nullptr,
NULL
) == -1 || raise(SIGSTOP) != 0)
+ if (ptrace(PTRACE_TRACEME, 0, nullptr,
nullptr
) == -1 || raise(SIGSTOP) != 0)
xbt_die("Could not wait for the model-checker");
client_->handleMessages();
xbt_die("Could not wait for the model-checker");
client_->handleMessages();
@@
-155,10
+156,10
@@
void Client::handleMessages()
void Client::mainLoop(void)
{
while (1) {
void Client::mainLoop(void)
{
while (1) {
+ simgrid::mc::wait_for_requests();
if (channel_.send(MC_MESSAGE_WAITING))
xbt_die("Could not send WAITING mesage to model-checker");
this->handleMessages();
if (channel_.send(MC_MESSAGE_WAITING))
xbt_die("Could not send WAITING mesage to model-checker");
this->handleMessages();
- simgrid::mc::wait_for_requests();
}
}
}
}