rlc: fix dtor

TSAN was complaining about destroying a locked mutex
master
Andre Puschmann 4 years ago
parent 4c316aa9ea
commit b6a3b8c5b1

@ -27,9 +27,11 @@ rlc::rlc(const char* logname) : logger(srslog::fetch_basic_logger(logname)), poo
rlc::~rlc()
{
// destroy all remaining entities
srsran::rwlock_write_guard lock(rwlock);
rlc_array.clear();
rlc_array_mrb.clear();
{
srsran::rwlock_write_guard lock(rwlock);
rlc_array.clear();
rlc_array_mrb.clear();
}
pthread_rwlock_destroy(&rwlock);
}

Loading…
Cancel
Save