diff options
Diffstat (limited to 'src/dev/dma_device.hh')
-rw-r--r-- | src/dev/dma_device.hh | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/dev/dma_device.hh b/src/dev/dma_device.hh index f354d3859..0dc79df42 100644 --- a/src/dev/dma_device.hh +++ b/src/dev/dma_device.hh @@ -240,22 +240,6 @@ class DmaCallback : public Drainable } } - /** - * Event invoked by DmaDevice on completion of each chunk. - */ - class DmaChunkEvent : public Event - { - private: - DmaCallback *callback; - - public: - DmaChunkEvent(DmaCallback *cb) - : Event(Default_Pri, AutoDelete), callback(cb) - { } - - void process() { callback->chunkComplete(); } - }; - public: /** @@ -265,7 +249,8 @@ class DmaCallback : public Drainable Event *getChunkEvent() { ++count; - return new DmaChunkEvent(this); + return new EventFunctionWrapper([this]{ chunkComplete(); }, name(), + true); } }; |