Merge pull request #768 from mmajoral/fix_deadlock_fpga

This commit is contained in:
mmajoral 2024-04-04 20:41:04 +02:00 committed by GitHub
commit 2b62694c0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1530,11 +1530,12 @@ int dll_pll_veml_tracking_fpga::general_work(int noutput_items __attribute__((un
{
boost::mutex::scoped_lock lock(d_mutex);
d_worker_is_done = false;
l.unlock();
while (!d_worker_is_done)
{
d_m_condition.wait(lock);
}
l.lock();
// Signal alignment (skip samples until the incoming signal is aligned with local replica)
int64_t acq_trk_diff_samples;
double acq_trk_diff_seconds;