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
090bc6fa
Commit
090bc6fa
authored
Aug 08, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/*Monitor: add method GetEventLoop()
parent
b63db1c1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
DeferredMonitor.hxx
src/event/DeferredMonitor.hxx
+4
-0
MultiSocketMonitor.hxx
src/event/MultiSocketMonitor.hxx
+4
-1
SocketMonitor.hxx
src/event/SocketMonitor.hxx
+4
-0
TimeoutMonitor.hxx
src/event/TimeoutMonitor.hxx
+4
-0
No files found.
src/event/DeferredMonitor.hxx
View file @
090bc6fa
...
...
@@ -44,6 +44,10 @@ public:
Cancel
();
}
EventLoop
&
GetEventLoop
()
{
return
loop
;
}
void
Schedule
();
void
Cancel
();
...
...
src/event/MultiSocketMonitor.hxx
View file @
090bc6fa
...
...
@@ -63,7 +63,10 @@ public:
MultiSocketMonitor
(
EventLoop
&
_loop
);
~
MultiSocketMonitor
();
public
:
EventLoop
&
GetEventLoop
()
{
return
loop
;
}
gcc_pure
gint64
GetTime
()
const
{
return
g_source_get_time
(
&
source
->
base
);
...
...
src/event/SocketMonitor.hxx
View file @
090bc6fa
...
...
@@ -66,6 +66,10 @@ public:
~
SocketMonitor
();
EventLoop
&
GetEventLoop
()
{
return
loop
;
}
bool
IsDefined
()
const
{
return
fd
>=
0
;
}
...
...
src/event/TimeoutMonitor.hxx
View file @
090bc6fa
...
...
@@ -38,6 +38,10 @@ public:
Cancel
();
}
EventLoop
&
GetEventLoop
()
{
return
loop
;
}
bool
IsActive
()
const
{
return
source
!=
nullptr
;
}
...
...
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