diff options
author | 2017-02-04 01:23:12 +0100 | |
---|---|---|
committer | 2017-02-05 17:19:53 +0100 | |
commit | 70051f6c1f009bae411d68a8afa229259504e866 (patch) | |
tree | 0c19623b17b546ffe6cba8697aa9ddce687cf00a /src/lib/netlist/plib/palloc.h | |
parent | 427cf984dbcab7584f0f75ed6295d97543422a4a (diff) |
Netlist: It is now possible to have multiple handlers per device ...
... for updates. This will make device implementation more flexible and
faster. A nice side-effect is that there was some minor (<5%)
performance increase already. Each input is now assigned a notification
handler. Currently this is update, but going forward this may be a
custom handler. In addition
- fixed MEMPOOL on OSX
- removed dead code
- avoid bit-rot
- added delegate support for emscripten and arm processors
- added delegate support for VS 2015 x64
[Couriersud]
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r-- | src/lib/netlist/plib/palloc.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h index 2e4c2809048..02249f09168 100644 --- a/src/lib/netlist/plib/palloc.h +++ b/src/lib/netlist/plib/palloc.h @@ -144,6 +144,7 @@ private: }; size_t new_block(); + size_t mininfosize(); struct info { @@ -151,6 +152,11 @@ private: size_t m_block; }; + size_t m_min_alloc; + size_t m_min_align; + + std::vector<block> m_blocks; + public: mempool(size_t min_alloc, size_t min_align); ~mempool(); @@ -158,10 +164,6 @@ public: void *alloc(size_t size); void free(void *ptr); - size_t m_min_alloc; - size_t m_min_align; - - std::vector<block> m_blocks; }; } |