mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-10 17:58:07 +00:00
Make mfp
const methods thread-safe.
In particular, we make the parent links relaxed atomics so concurrent `ifind()` calls are safe. This may appear to cause a tiny performance regression but as discussed in https://yosyshq.discourse.group/t/parallel-optmergepass-implementation/87/16 this is probably just noise.
This commit is contained in:
parent
7719beb4ae
commit
2f81c55389
2 changed files with 45 additions and 14 deletions
|
@ -21,6 +21,7 @@
|
|||
#define YOSYS_COMMON_H
|
||||
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <tuple>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue