diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-10 17:20:45 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-07-10 17:31:10 +0200 |
commit | 032c1d8da9ef50951d9b2f2dedf9ef5f80cf7936 (patch) | |
tree | fcc81553b7f33080f132077d03dc4243fab5a8bc /CommonLibs | |
parent | c62a05140c36148b4cdc43815c9e84f0e5589993 (diff) |
trx_rate_ctr: Fix locking wrong mutex
It was notcied due to sometimes causing deadlock at shutdown time.
Fixes: 92ba59dacffe79f4c987154bc63c6eacd8c3605f
Change-Id: I49bea4b0ae469794b5c80ee8fa4f275914a5194c
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/trx_rate_ctr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommonLibs/trx_rate_ctr.cpp b/CommonLibs/trx_rate_ctr.cpp index 76aff7d..6391a38 100644 --- a/CommonLibs/trx_rate_ctr.cpp +++ b/CommonLibs/trx_rate_ctr.cpp @@ -159,7 +159,7 @@ static int trx_rate_ctr_timerfd_cb(struct osmo_fd *ofd, unsigned int what) { size_t chan; struct rate_ctr *ctr; LOGC(DMAIN, NOTICE) << "Main thread is updating Transceiver counters"; - dev_rate_ctr_mutex.lock(); + trx_rate_ctr_mutex.lock(); for (chan = 0; chan < chan_len; chan++) { if (trx_ctrs_pending[chan].chan == PENDING_CHAN_NONE) continue; |