summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-09-21 22:40:25 +0200
committerMax Kellermann <max@musicpd.org>2017-09-21 22:40:25 +0200
commit9df4853e23987a5de9b7ce0c69cef4cbee7fbcbf (patch)
tree9822235255ee3bdc88e32a1b97c1a77f84b07b68 /src/event
parent18c4ef09d51d1c94453eb5cdfd81dfd75397d927 (diff)
event/DeferredCall: rename to DeferEvent
Diffstat (limited to 'src/event')
-rw-r--r--src/event/DeferEvent.hxx (renamed from src/event/DeferredCall.hxx)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/event/DeferredCall.hxx b/src/event/DeferEvent.hxx
index a3310c888..f9d888db6 100644
--- a/src/event/DeferredCall.hxx
+++ b/src/event/DeferEvent.hxx
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_EVENT_DEFERRED_CALL_HXX
-#define MPD_EVENT_DEFERRED_CALL_HXX
+#ifndef MPD_DEFER_EVENT_HXX
+#define MPD_DEFER_EVENT_HXX
#include "check.h"
#include "DeferredMonitor.hxx"
@@ -29,19 +29,19 @@
*
* This class is thread-safe.
*/
-class DeferredCall final : DeferredMonitor {
+class DeferEvent final : DeferredMonitor {
typedef BoundMethod<void()> Callback;
const Callback callback;
public:
- DeferredCall(EventLoop &_loop, Callback _callback)
+ DeferEvent(EventLoop &_loop, Callback _callback)
:DeferredMonitor(_loop), callback(_callback) {}
using DeferredMonitor::GetEventLoop;
using DeferredMonitor::Schedule;
using DeferredMonitor::Cancel;
-protected:
+private:
void RunDeferred() override {
callback();
}