1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-21 22:47:09 +00:00

changed join() by timer_join(...) for keyboard thread termination, that was blocking the program ending

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@279 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Carles Fernandez 2012-11-02 11:14:23 +00:00
parent 5662d021d5
commit 33eb1c8aa2

View File

@ -118,7 +118,7 @@ void ControlThread::run()
read_control_messages(); read_control_messages();
if (control_messages_ != 0) process_control_messages(); if (control_messages_ != 0) process_control_messages();
} }
keyboard_thread_.join(); keyboard_thread_.timed_join(boost::posix_time::seconds(1));
flowgraph_->stop(); flowgraph_->stop();
LOG_AT_LEVEL(INFO) << "Flowgraph stopped"; LOG_AT_LEVEL(INFO) << "Flowgraph stopped";
} }
@ -194,7 +194,6 @@ void ControlThread::process_control_messages()
void ControlThread::apply_action(unsigned int what) void ControlThread::apply_action(unsigned int what)
{ {
switch (what) switch (what)
{ {
case 0: case 0: