diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-20 13:19:45 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-07-20 13:19:56 +0100 |
commit | 19f4b68f07edcbcb24282f5d3941d5d4a97afa03 (patch) | |
tree | 30b1df6a74df42e7c6137a4b2b53aa3813627bd7 /common/nextpnr.h | |
parent | b4b111a053a5e2aacd036508899277022914ae8f (diff) | |
download | nextpnr-19f4b68f07edcbcb24282f5d3941d5d4a97afa03.tar.gz nextpnr-19f4b68f07edcbcb24282f5d3941d5d4a97afa03.tar.bz2 nextpnr-19f4b68f07edcbcb24282f5d3941d5d4a97afa03.zip |
clang-format and uncomment debug
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index e9cda565..09174320 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -250,10 +250,11 @@ struct CellInfo : ArchCellInfo class IdStringDB { friend class IdString; + private: mutable std::unordered_map<std::string, int> *idstring_str_to_idx; mutable std::vector<const std::string *> *idstring_idx_to_str; - + public: IdString id(const std::string &s) const { return IdString(this, s); } IdString id(const char *s) const { return IdString(this, s); } @@ -279,9 +280,7 @@ class DeterministicRNG uint64_t rngstate; public: - DeterministicRNG() : rngstate(0x3141592653589793) - { - } + DeterministicRNG() : rngstate(0x3141592653589793) {} uint64_t rng64() { @@ -340,7 +339,6 @@ class DeterministicRNG std::sort(a.begin(), a.end()); shuffle(a); } - }; class BaseCtx : public IdStringDB @@ -348,7 +346,7 @@ class BaseCtx : public IdStringDB private: std::mutex mutex; pthread_t mutex_owner; - + std::mutex generation_mutex; public: @@ -362,7 +360,6 @@ class BaseCtx : public IdStringDB { mutex.lock(); mutex_owner = pthread_self(); - } void unlock(void) |