add last backwards-compatible version
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
//! Generic service for receiving notifications about async operation completion. Used by various other services.
|
||||
@@ -22,7 +20,7 @@ public:
|
||||
//! Implementation helper.
|
||||
class completion_notify_dummy : public completion_notify {
|
||||
public:
|
||||
void on_completion(unsigned) {}
|
||||
void on_completion(unsigned p_code) {}
|
||||
};
|
||||
|
||||
//! Implementation helper.
|
||||
@@ -70,7 +68,7 @@ public:
|
||||
~completion_notify_receiver();
|
||||
void orphan_all_tasks();
|
||||
|
||||
virtual void on_task_completion(unsigned p_id,unsigned p_status) {(void)p_id;(void)p_status;}
|
||||
virtual void on_task_completion(unsigned p_id,unsigned p_status) {}
|
||||
private:
|
||||
static void orphanfunc(unsigned,completion_notify_orphanable_nnptr p_item) {p_item->orphan();}
|
||||
pfc::map_t<unsigned,completion_notify_orphanable_nnptr> m_tasks;
|
||||
|
||||
Reference in New Issue
Block a user