mirror of
https://github.com/YosysHQ/yosys
synced 2025-12-17 17:58:32 +00:00
Make coverage data thread-safe
This commit is contained in:
parent
10fd97821e
commit
7f9de6e48f
2 changed files with 7 additions and 5 deletions
|
|
@ -720,7 +720,7 @@ dict<std::string, std::pair<std::string, int>> get_coverage_data()
|
|||
if (coverage_data.count(p->id))
|
||||
log_warning("found duplicate coverage id \"%s\".\n", p->id);
|
||||
coverage_data[p->id].first = stringf("%s:%d:%s", p->file, p->line, p->func);
|
||||
coverage_data[p->id].second += p->counter;
|
||||
coverage_data[p->id].second += p->counter.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
for (auto &it : coverage_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue