rlc: fix dtor

TSAN was complaining about destroying a locked mutex
This commit is contained in:
Andre Puschmann 2021-06-29 14:25:14 +02:00
parent 4c316aa9ea
commit b6a3b8c5b1
1 changed files with 5 additions and 3 deletions

View File

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