mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-21 06:27:01 +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:
parent
5662d021d5
commit
33eb1c8aa2
@ -118,7 +118,7 @@ void ControlThread::run()
|
||||
read_control_messages();
|
||||
if (control_messages_ != 0) process_control_messages();
|
||||
}
|
||||
keyboard_thread_.join();
|
||||
keyboard_thread_.timed_join(boost::posix_time::seconds(1));
|
||||
flowgraph_->stop();
|
||||
LOG_AT_LEVEL(INFO) << "Flowgraph stopped";
|
||||
}
|
||||
@ -194,7 +194,6 @@ void ControlThread::process_control_messages()
|
||||
|
||||
void ControlThread::apply_action(unsigned int what)
|
||||
{
|
||||
|
||||
switch (what)
|
||||
{
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user