aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/common
diff options
context:
space:
mode:
authorEric <ewild@sysmocom.de>2022-05-30 01:44:39 +0200
committerEric <ewild@sysmocom.de>2022-07-11 20:33:37 +0200
commitd9883b11a123b6301e61701a6cf721823f14e9d0 (patch)
tree10df5439bf0dd435523b5a14d15a78406446d78d /Transceiver52M/device/common
parent9d76313a1f0796f10d23b5c7025bb7c63b75ec06 (diff)
clean up mutex, scopedlock, and signal classes
This also uncovers very interesting design decisions like the copying of mutexes and condition vars depending on recursive locks that were previously hidden by shady c function calls.. We have perfectly good c++11 versions for all of that. While we're at it, also use the initialization list for the other (still copy constructable) vectors, which cleans up the radio interfaces. Change-Id: Idc9e3b1144c5b93f5dad2f8e0e30f1058477aa52
Diffstat (limited to 'Transceiver52M/device/common')
-rw-r--r--Transceiver52M/device/common/radioDevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Transceiver52M/device/common/radioDevice.h b/Transceiver52M/device/common/radioDevice.h
index 1e19bdc..a2f848c 100644
--- a/Transceiver52M/device/common/radioDevice.h
+++ b/Transceiver52M/device/common/radioDevice.h
@@ -172,14 +172,13 @@ class RadioDevice {
const std::vector<std::string>& tx_paths,
const std::vector<std::string>& rx_paths):
tx_sps(tx_sps), rx_sps(rx_sps), iface(type), chans(chan_num), lo_offset(offset),
- tx_paths(tx_paths), rx_paths(rx_paths)
+ tx_paths(tx_paths), rx_paths(rx_paths), m_ctr(chans)
{
if (iface == MULTI_ARFCN) {
LOGC(DDEV, INFO) << "Multi-ARFCN: "<< chan_num << " logical chans -> 1 physical chans";
chans = 1;
}
- m_ctr.resize(chans);
for (size_t i = 0; i < chans; i++) {
memset(&m_ctr[i], 0, sizeof(m_ctr[i]));
m_ctr[i].chan = i;