mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Merge branch 'fix-asan' into next
This commit is contained in:
commit
2e09b03174
@ -60,6 +60,8 @@ DEFINE_string(RINEX_version, "-", "If defined, specifies the RINEX version (2.11
|
|||||||
|
|
||||||
DEFINE_string(RINEX_name, "-", "If defined, specifies the RINEX files base name");
|
DEFINE_string(RINEX_name, "-", "If defined, specifies the RINEX files base name");
|
||||||
|
|
||||||
|
DEFINE_bool(keyboard, true, "If set to false, it disables the keyboard listener (so the receiver cannot be stopped with [Enter]+q)");
|
||||||
|
|
||||||
#if GFLAGS_GREATER_2_0
|
#if GFLAGS_GREATER_2_0
|
||||||
|
|
||||||
static bool ValidateC(const char* flagname, const std::string& value)
|
static bool ValidateC(const char* flagname, const std::string& value)
|
||||||
|
@ -59,7 +59,7 @@ const int32_t DEFAULT_CARRIER_SMOOTHING_FACTOR = 200;
|
|||||||
// Declare flags for PVT
|
// Declare flags for PVT
|
||||||
DECLARE_string(RINEX_version); //!< If defined, specifies the RINEX version (2.11 or 3.02). Overrides the configuration file.
|
DECLARE_string(RINEX_version); //!< If defined, specifies the RINEX version (2.11 or 3.02). Overrides the configuration file.
|
||||||
DECLARE_string(RINEX_name); //!< If defined, specifies the RINEX files base name
|
DECLARE_string(RINEX_name); //!< If defined, specifies the RINEX files base name
|
||||||
|
DECLARE_bool(keyboard); //!< If set to false, disables the keyboard listener. Only for debug purposes (e.g. ASAN mode termination)
|
||||||
|
|
||||||
/** \} */
|
/** \} */
|
||||||
/** \} */
|
/** \} */
|
||||||
|
@ -369,7 +369,10 @@ int ControlThread::run()
|
|||||||
// launch GNSS assistance process AFTER the flowgraph is running because the GNU Radio asynchronous queues must be already running to transport msgs
|
// launch GNSS assistance process AFTER the flowgraph is running because the GNU Radio asynchronous queues must be already running to transport msgs
|
||||||
assist_GNSS();
|
assist_GNSS();
|
||||||
// start the keyboard_listener thread
|
// start the keyboard_listener thread
|
||||||
keyboard_thread_ = std::thread(&ControlThread::keyboard_listener, this);
|
if (FLAGS_keyboard)
|
||||||
|
{
|
||||||
|
keyboard_thread_ = std::thread(&ControlThread::keyboard_listener, this);
|
||||||
|
}
|
||||||
sysv_queue_thread_ = std::thread(&ControlThread::sysv_queue_listener, this);
|
sysv_queue_thread_ = std::thread(&ControlThread::sysv_queue_listener, this);
|
||||||
|
|
||||||
// start the telecommand listener thread
|
// start the telecommand listener thread
|
||||||
@ -405,7 +408,7 @@ int ControlThread::run()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Terminate keyboard thread
|
// Terminate keyboard thread
|
||||||
if (keyboard_thread_.joinable())
|
if (FLAGS_keyboard && keyboard_thread_.joinable())
|
||||||
{
|
{
|
||||||
pthread_t id = keyboard_thread_.native_handle();
|
pthread_t id = keyboard_thread_.native_handle();
|
||||||
keyboard_thread_.detach();
|
keyboard_thread_.detach();
|
||||||
|
Loading…
Reference in New Issue
Block a user