Commit f6f47424 authored by Max Kellermann's avatar Max Kellermann

event/DeferredMonitor: rename Run() to RunDeferred()

parent 977004c3
......@@ -37,7 +37,7 @@ namespace GlobalEvents {
Monitor(EventLoop &_loop):DeferredMonitor(_loop) {}
protected:
virtual void Run() override;
virtual void RunDeferred() override;
};
static Manual<Monitor> monitor;
......@@ -59,7 +59,7 @@ InvokeGlobalEvent(GlobalEvents::Event event)
}
void
GlobalEvents::Monitor::Run()
GlobalEvents::Monitor::RunDeferred()
{
const unsigned f = flags.exchange(0);
......
......@@ -39,11 +39,11 @@ DeferredMonitor::Schedule()
}
void
DeferredMonitor::DoRun()
DeferredMonitor::Run()
{
const auto id = source_id.exchange(0);
if (id != 0)
Run();
RunDeferred();
}
gboolean
......
......@@ -48,10 +48,10 @@ public:
void Cancel();
protected:
virtual void Run() = 0;
virtual void RunDeferred() = 0;
private:
void DoRun();
void Run();
static gboolean Callback(gpointer data);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment