#ifndef SIMGRID_MC_MODEL_CHECKER_HPP
#define SIMGRID_MC_MODEL_CHECKER_HPP
-#include "src/mc/remote/EventLoop.hpp"
+#include "src/mc/remote/CheckerSide.hpp"
#include "src/mc/sosp/PageStore.hpp"
#include "xbt/base.h"
/** State of the model-checker (global variables for the model checker)
*/
class ModelChecker {
- EventLoop event_loop_;
+ CheckerSide event_loop_;
/** String pool for host names */
std::set<std::string> hostnames_;
// This is the parent snapshot of the current state:
/* 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. */
-#include "src/mc/remote/EventLoop.hpp"
+#include "src/mc/remote/CheckerSide.hpp"
#include <signal.h>
#include <sys/wait.h>
-simgrid::mc::EventLoop::~EventLoop()
+simgrid::mc::CheckerSide::~CheckerSide()
{
if (socket_event_ != nullptr)
event_free(socket_event_);
event_base_free(base_);
}
-void simgrid::mc::EventLoop::start(int socket, void (*handler)(int, short, void*))
+void simgrid::mc::CheckerSide::start(int socket, void (*handler)(int, short, void*))
{
base_ = event_base_new();
event_add(signal_event_, NULL);
}
-void simgrid::mc::EventLoop::dispatch()
+void simgrid::mc::CheckerSide::dispatch()
{
event_base_dispatch(base_);
}
-void simgrid::mc::EventLoop::break_loop()
+void simgrid::mc::CheckerSide::break_loop()
{
event_base_loopbreak(base_);
}
namespace simgrid {
namespace mc {
-class EventLoop {
+class CheckerSide {
struct event_base* base_ = nullptr;
struct event* socket_event_ = nullptr;
struct event* signal_event_ = nullptr;
public:
- ~EventLoop();
+ ~CheckerSide();
void start(int socket, void (*handler)(int, short, void*));
void dispatch();
src/mc/inspect/mc_unw.cpp
src/mc/inspect/mc_unw_vmread.cpp
- src/mc/remote/Channel.cpp
- src/mc/remote/Channel.hpp
src/mc/remote/AppSide.cpp
src/mc/remote/AppSide.hpp
- src/mc/remote/EventLoop.cpp
- src/mc/remote/EventLoop.hpp
+ src/mc/remote/Channel.cpp
+ src/mc/remote/Channel.hpp
+ src/mc/remote/CheckerSide.cpp
+ src/mc/remote/CheckerSide.hpp
src/mc/remote/RemoteClient.hpp
src/mc/remote/RemoteClient.cpp
src/mc/remote/RemotePtr.hpp