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 63ad38e9d9
commit 43ff59750a
1 changed files with 2 additions and 0 deletions

View File

@ -1747,6 +1747,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 ()) {