Remove inlining warnings (vespamalloc).
@@ -19,27 +19,34 @@ class FreeWorker : public Consumer {
public:
FreeWorker(uint32_t maxQueue, bool inverse)
: Consumer (maxQueue, inverse) {}
+ ~FreeWorker() override;
private:
void consume(void * p) override { free(p); }
};
+FreeWorker::~FreeWorker() = default;
+
//-----------------------------------------------------------------------------
class MallocWorker : public Producer {
public:
MallocWorker(uint32_t size, uint32_t cnt, FreeWorker &target)
: Producer(cnt, target), _size(size) {}
+ ~MallocWorker() override;
private:
uint32_t _size;
void * produce() override { return malloc(_size); }
};
+MallocWorker::~MallocWorker() = default;
+
//-----------------------------------------------------------------------------
class MallocFreeWorker : public ProducerConsumer {
public:
MallocFreeWorker(uint32_t size, uint32_t cnt, bool inverse)
: ProducerConsumer(cnt, inverse), _size(size) { }
+ ~MallocFreeWorker() override;
private:
uint32_t _size;
@@ -47,6 +54,8 @@ private:
void consume(void * p) override { free(p); }
};
+MallocFreeWorker::~MallocFreeWorker() = default;
+
//-----------------------------------------------------------------------------
int Test::Main() {
