diff options
author | Eric <ewild@sysmocom.de> | 2023-05-08 12:56:56 +0200 |
---|---|---|
committer | Eric <ewild@sysmocom.de> | 2023-07-07 19:12:39 +0200 |
commit | c3e515a28b2f3c7f7ef27a1ab38ef198da961f1c (patch) | |
tree | df19fb9a0c31fbd44ee6a682e6a8c2bed9ef7f8c /Transceiver52M/ms/ms.h | |
parent | bcaafcaa9d6ac7d2e55fe2dd6d4392fb93ef29b7 (diff) |
ms: rearrange code to allow clean exits
This allows gracefully terminating the application by introducing queue
timeouts.
Change-Id: I0b8deebc63cf4d936666fd68e1666d1917e89a5d
Diffstat (limited to 'Transceiver52M/ms/ms.h')
-rw-r--r-- | Transceiver52M/ms/ms.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Transceiver52M/ms/ms.h b/Transceiver52M/ms/ms.h index efccffc..8ca9b02 100644 --- a/Transceiver52M/ms/ms.h +++ b/Transceiver52M/ms/ms.h @@ -117,7 +117,7 @@ struct one_burst { }; }; -using rx_queue_t = spsc_cond<8 * NUM_RXQ_FRAMES, one_burst, true, false>; +using rx_queue_t = spsc_cond_timeout<8 * NUM_RXQ_FRAMES, one_burst, true, false>; enum class SCH_STATE { SEARCHING, FOUND }; @@ -267,7 +267,7 @@ struct ms_trx : public BASET { sched_params::target hw_target; single_thread_pool worker_thread; - void start(); + void start_lower_ms(); std::atomic<bool> upper_is_ready; void set_upper_ready(bool is_ready); |