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

This commit is contained in:
Max Kellermann 2013-08-07 19:39:26 +02:00
parent 977004c350
commit f6f4742410
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -39,11 +39,11 @@ DeferredMonitor::Schedule()
}
void
DeferredMonitor::DoRun()
DeferredMonitor::Run()
{
const auto id = source_id.exchange(0);
if (id != 0)
Run();
RunDeferred();
}
gboolean

View File

@ -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);
};