From 1d62ca31ac6d54505b202b23dc68866c76374184 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 3 Mar 2020 11:10:09 +0000 Subject: [PATCH] DLL_HEADER for BlockAllocator (used in BoxTree) --- libsrc/general/optmem.hpp | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/libsrc/general/optmem.hpp b/libsrc/general/optmem.hpp index 99ffb67d..b2be31d3 100644 --- a/libsrc/general/optmem.hpp +++ b/libsrc/general/optmem.hpp @@ -26,39 +26,13 @@ private: mutex block_allocator_mutex; public: /// - BlockAllocator (unsigned asize, unsigned ablocks = 100); + DLL_HEADER BlockAllocator (unsigned asize, unsigned ablocks = 100); /// - ~BlockAllocator (); + DLL_HEADER ~BlockAllocator (); /// - - void * Alloc (); - /* - { - if (!freelist) - Alloc2(); - - void * p = freelist; - // freelist = *(void**)freelist; - freelist = *static_cast (freelist); - - return p; - } - */ - - + DLL_HEADER void * Alloc (); /// - void Free (void * p); - /* - { - if (!bablocks.Size()) return; - *(void**)p = freelist; - freelist = p; - } - */ - - -private: - // void Alloc2 (); + DLL_HEADER void Free (void * p); }; }