Add methods to set timeout on blocking Send/Receive

This commit is contained in:
Alexey Rybalchenko
2015-10-15 16:43:30 +02:00
parent 91d3f013c0
commit 8f59db1283
11 changed files with 655 additions and 146 deletions

View File

@@ -77,7 +77,7 @@ void FairMQDevice::SignalHandler(int signal)
Shutdown();
fTerminateStateThread.join();
MQLOG(INFO) << "Exiting.";
LOG(INFO) << "Exiting.";
stop();
// std::abort();
exit(EXIT_FAILURE);
@@ -558,8 +558,8 @@ void FairMQDevice::LogSocketRates()
void FairMQDevice::InteractiveStateLoop()
{
char c; // hold the user console input
bool running = true;
char c; // hold the user console input
struct termios t;
tcgetattr(STDIN_FILENO, &t); // get the current terminal I/O structure