mirror of https://github.com/PentHertz/srsLTE.git
enb,stack_lte: protect access to sync queue
the sync queue is only created during init so access needs to be protected
This commit is contained in:
parent
59e1bca3f5
commit
593d28fa4d
|
@ -203,7 +203,9 @@ int enb_stack_lte::init(const stack_args_t& args_,
|
|||
|
||||
void enb_stack_lte::tti_clock()
|
||||
{
|
||||
sync_task_queue.push([this]() { tti_clock_impl(); });
|
||||
if (started.load(std::memory_order_relaxed)) {
|
||||
sync_task_queue.push([this]() { tti_clock_impl(); });
|
||||
}
|
||||
}
|
||||
|
||||
void enb_stack_lte::tti_clock_impl()
|
||||
|
|
Loading…
Reference in New Issue