diff options
author | 2019-10-17 10:21:00 +0200 | |
---|---|---|
committer | 2019-10-17 10:21:00 +0200 | |
commit | db318046c4ed54fa7822b6aec55bec6d427e1e95 (patch) | |
tree | 1636e304db0c44da12d192ef8cd17837d4975b86 /src/lib/netlist/plib/pmempool.h | |
parent | da35541e842fe09869d24f2dda23162194c369ce (diff) |
Netlist: code maintenance and bug fixes. (nw)
- solver now uses dynamic allocation on systems larger than 512x512
- fixed osx build
- moved nl_lists.h classes to plists.h
- fixed netlist makefile clint section
- readability and typos
Diffstat (limited to 'src/lib/netlist/plib/pmempool.h')
-rw-r--r-- | src/lib/netlist/plib/pmempool.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pmempool.h b/src/lib/netlist/plib/pmempool.h index 7a59097afe3..a4ac4fd393f 100644 --- a/src/lib/netlist/plib/pmempool.h +++ b/src/lib/netlist/plib/pmempool.h @@ -123,6 +123,12 @@ namespace plib { } } + static inline mempool &instance() + { + static mempool s_mempool; + return s_mempool; + } + void *allocate(size_t align, size_t size) { block *b = nullptr; @@ -220,6 +226,8 @@ namespace plib { } } + bool operator ==(const mempool &rhs) { return this == &rhs; } + }; } // namespace plib |