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: actually remove the comm channel from RemoteClientMemory
[simgrid.git]
/
src
/
mc
/
remote
/
CheckerSide.hpp
diff --git
a/src/mc/remote/CheckerSide.hpp
b/src/mc/remote/CheckerSide.hpp
index
19ebd59
..
6f2a3da
100644
(file)
--- a/
src/mc/remote/CheckerSide.hpp
+++ b/
src/mc/remote/CheckerSide.hpp
@@
-6,6
+6,8
@@
#ifndef SIMGRID_MC_REMOTE_EVENTLOOP_HPP
#define SIMGRID_MC_REMOTE_EVENTLOOP_HPP
#ifndef SIMGRID_MC_REMOTE_EVENTLOOP_HPP
#define SIMGRID_MC_REMOTE_EVENTLOOP_HPP
+#include "src/mc/remote/Channel.hpp"
+
#include <event2/event.h>
#include <functional>
#include <event2/event.h>
#include <functional>
@@
-17,10
+19,16
@@
class CheckerSide {
struct event* socket_event_ = nullptr;
struct event* signal_event_ = nullptr;
struct event* socket_event_ = nullptr;
struct event* signal_event_ = nullptr;
+ Channel channel_;
+
public:
public:
+ explicit CheckerSide(int sockfd) : channel_(sockfd) {}
~CheckerSide();
~CheckerSide();
- void start(int socket, void (*handler)(int, short, void*));
+ Channel const& get_channel() const { return channel_; }
+ Channel& get_channel() { return channel_; }
+
+ void start(void (*handler)(int, short, void*));
void dispatch();
void break_loop();
};
void dispatch();
void break_loop();
};