proc_ra: fix race detected with TSAN

rar_received is accessed from PHY worker and Stack thread
This commit is contained in:
Andre Puschmann 2021-07-13 08:53:58 +02:00
parent 6c82d63aa6
commit e0d9afc342
1 changed files with 3 additions and 3 deletions

View File

@ -146,9 +146,9 @@ private:
std::atomic<uint64_t> transmitted_contention_id = {0};
std::atomic<uint16_t> transmitted_crnti = {0};
bool started_by_pdcch = false;
uint32_t rar_grant_nbytes = 0;
bool rar_received = false;
bool started_by_pdcch = false;
uint32_t rar_grant_nbytes = 0;
std::atomic<bool> rar_received = {false};
};
} // namespace srsue