Fixed a race condition in DRC local processor with multiple threads

This commit is contained in:
Matthias Koefferlein 2022-12-04 21:04:21 +01:00
parent b3968c31e5
commit 16e95fa45b
1 changed files with 2 additions and 0 deletions

View File

@ -1741,6 +1741,8 @@ local_processor<TS, TI, TR>::compute_results (local_processor_contexts<TS, TI, T
for (std::vector<db::cell_index_type>::const_iterator bu = cells_bu.begin (); bu != cells_bu.end (); ++bu) {
tl::MutexLocker locker (& contexts.lock ());
typename local_processor_contexts<TS, TI, TR>::iterator cpc = contexts.context_map ().find (&mp_subject_layout->cell (*bu));
if (cpc != contexts.context_map ().end ()) {