Skip to content
Snippets Groups Projects
Commit 36338763 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Make checkpoint/resume not implemented yet for socket variables

This may never be implemented though
parent 5cdc0296
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
......@@ -2,6 +2,7 @@
#include <language/utils/BinaryOperatorProcessorBuilder.hpp>
#include <language/utils/BuiltinFunctionEmbedder.hpp>
#include <language/utils/CheckpointResumeRepository.hpp>
#include <language/utils/OStream.hpp>
#include <language/utils/OperatorRepository.hpp>
#include <utils/Socket.hpp>
......@@ -261,5 +262,12 @@ SocketModule::registerOperators() const
void
SocketModule::registerCheckpointResume() const
{
throw NotImplementedError("registerCheckpointResume()");
CheckpointResumeRepository::instance()
.addCheckpointResume(ast_node_data_type_from<std::shared_ptr<const Socket>>,
std::function(
[](const std::string&, const EmbeddedData&, HighFive::File&, HighFive::Group&,
HighFive::Group&) { throw NotImplementedError("checkpoint/resume with sockets"); }),
std::function([](const std::string&, const HighFive::Group&) -> EmbeddedData {
throw NotImplementedError("checkpoint/resume with sockets");
}));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment