Skip to content
Snippets Groups Projects
Commit b3b6cdc2 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Wait until connection is established

#16
parent 5dc9be37
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,9 @@
#include "streaming_recording_backend.h"
#include "recording_device.h"
#include "nesci/producer/nest_multimeter.hpp"
#include "nesci/producer/spike_detector.hpp"
#include "recording_device.h"
#include <iostream>
#include <memory>
......@@ -41,8 +41,13 @@ void StreamingRecordingBackend::initialize() {
}
void StreamingRecordingBackend::prepare() {
std::cout << "prepare()" << std::endl;
std::cout << "Get the number of nodes" << nest::kernel().node_manager.size() << std::endl;
LOG(nest::M_INFO, "StreamingRecordingBackend",
"Wait until connection is established...");
while (!relay_.IsConnected()) {
std::this_thread::yield();
}
LOG(nest::M_INFO, "StreamingRecordingBackend",
"Connection established!");
}
void StreamingRecordingBackend::cleanup() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment