event/DeferredMonitor: rename Run() to RunDeferred()
This commit is contained in:
parent
977004c350
commit
f6f4742410
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user