Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f6f47424
Commit
f6f47424
authored
Aug 07, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/DeferredMonitor: rename Run() to RunDeferred()
parent
977004c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
GlobalEvents.cxx
src/GlobalEvents.cxx
+2
-2
DeferredMonitor.cxx
src/event/DeferredMonitor.cxx
+2
-2
DeferredMonitor.hxx
src/event/DeferredMonitor.hxx
+2
-2
No files found.
src/GlobalEvents.cxx
View file @
f6f47424
...
...
@@ -37,7 +37,7 @@ namespace GlobalEvents {
Monitor
(
EventLoop
&
_loop
)
:
DeferredMonitor
(
_loop
)
{}
protected
:
virtual
void
Run
()
override
;
virtual
void
Run
Deferred
()
override
;
};
static
Manual
<
Monitor
>
monitor
;
...
...
@@ -59,7 +59,7 @@ InvokeGlobalEvent(GlobalEvents::Event event)
}
void
GlobalEvents
::
Monitor
::
Run
()
GlobalEvents
::
Monitor
::
Run
Deferred
()
{
const
unsigned
f
=
flags
.
exchange
(
0
);
...
...
src/event/DeferredMonitor.cxx
View file @
f6f47424
...
...
@@ -39,11 +39,11 @@ DeferredMonitor::Schedule()
}
void
DeferredMonitor
::
Do
Run
()
DeferredMonitor
::
Run
()
{
const
auto
id
=
source_id
.
exchange
(
0
);
if
(
id
!=
0
)
Run
();
Run
Deferred
();
}
gboolean
...
...
src/event/DeferredMonitor.hxx
View file @
f6f47424
...
...
@@ -48,10 +48,10 @@ public:
void
Cancel
();
protected
:
virtual
void
Run
()
=
0
;
virtual
void
Run
Deferred
()
=
0
;
private
:
void
Do
Run
();
void
Run
();
static
gboolean
Callback
(
gpointer
data
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment