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
cf483107
Commit
cf483107
authored
Nov 12, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/IdleMonitor: add "noexcept"
parent
b57e2f55
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+2
-2
FullyBufferedSocket.cxx
src/event/FullyBufferedSocket.cxx
+1
-1
FullyBufferedSocket.hxx
src/event/FullyBufferedSocket.hxx
+1
-1
IdleMonitor.cxx
src/event/IdleMonitor.cxx
+3
-3
IdleMonitor.hxx
src/event/IdleMonitor.hxx
+8
-8
MultiSocketMonitor.cxx
src/event/MultiSocketMonitor.cxx
+1
-1
MultiSocketMonitor.hxx
src/event/MultiSocketMonitor.hxx
+1
-1
Manager.cxx
src/lib/nfs/Manager.cxx
+1
-1
Manager.hxx
src/lib/nfs/Manager.hxx
+1
-1
No files found.
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
cf483107
...
...
@@ -145,7 +145,7 @@ private:
bool
OnSocketReady
(
unsigned
flags
)
noexcept
override
;
/* virtual methods from IdleMonitor */
void
OnIdle
()
override
;
void
OnIdle
()
noexcept
override
;
};
static
constexpr
struct
{
...
...
@@ -488,7 +488,7 @@ ProxyDatabase::OnSocketReady(gcc_unused unsigned flags) noexcept
}
void
ProxyDatabase
::
OnIdle
()
ProxyDatabase
::
OnIdle
()
noexcept
{
assert
(
connection
!=
nullptr
);
...
...
src/event/FullyBufferedSocket.cxx
View file @
cf483107
...
...
@@ -110,7 +110,7 @@ FullyBufferedSocket::OnSocketReady(unsigned flags) noexcept
}
void
FullyBufferedSocket
::
OnIdle
()
FullyBufferedSocket
::
OnIdle
()
noexcept
{
if
(
Flush
()
&&
!
output
.
empty
())
ScheduleWrite
();
...
...
src/event/FullyBufferedSocket.hxx
View file @
cf483107
...
...
@@ -64,7 +64,7 @@ protected:
/* virtual methods from class SocketMonitor */
bool
OnSocketReady
(
unsigned
flags
)
noexcept
override
;
virtual
void
OnIdle
()
override
;
virtual
void
OnIdle
()
noexcept
override
;
};
#endif
src/event/IdleMonitor.cxx
View file @
cf483107
...
...
@@ -24,7 +24,7 @@
#include <assert.h>
void
IdleMonitor
::
Cancel
()
IdleMonitor
::
Cancel
()
noexcept
{
assert
(
loop
.
IsInside
());
...
...
@@ -35,7 +35,7 @@ IdleMonitor::Cancel()
}
void
IdleMonitor
::
Schedule
()
IdleMonitor
::
Schedule
()
noexcept
{
assert
(
loop
.
IsInside
());
...
...
@@ -47,7 +47,7 @@ IdleMonitor::Schedule()
}
void
IdleMonitor
::
Run
()
IdleMonitor
::
Run
()
noexcept
{
assert
(
loop
.
IsInside
());
...
...
src/event/IdleMonitor.hxx
View file @
cf483107
...
...
@@ -43,10 +43,10 @@ class IdleMonitor {
EventLoop
&
loop
;
public
:
IdleMonitor
(
EventLoop
&
_loop
)
explicit
IdleMonitor
(
EventLoop
&
_loop
)
noexcept
:
loop
(
_loop
)
{}
~
IdleMonitor
()
{
~
IdleMonitor
()
noexcept
{
#ifndef NDEBUG
/* this check is redundant, it is only here to avoid
the assertion in Cancel() */
...
...
@@ -55,22 +55,22 @@ public:
Cancel
();
}
EventLoop
&
GetEventLoop
()
const
{
EventLoop
&
GetEventLoop
()
const
noexcept
{
return
loop
;
}
bool
IsActive
()
const
{
bool
IsActive
()
const
noexcept
{
return
list_hook
.
is_linked
();
}
void
Schedule
();
void
Cancel
();
void
Schedule
()
noexcept
;
void
Cancel
()
noexcept
;
protected
:
virtual
void
OnIdle
()
=
0
;
virtual
void
OnIdle
()
noexcept
=
0
;
private
:
void
Run
();
void
Run
()
noexcept
;
};
#endif
/* MAIN_NOTIFY_H */
src/event/MultiSocketMonitor.cxx
View file @
cf483107
...
...
@@ -89,7 +89,7 @@ MultiSocketMonitor::Prepare()
}
void
MultiSocketMonitor
::
OnIdle
()
MultiSocketMonitor
::
OnIdle
()
noexcept
{
if
(
ready
)
{
ready
=
false
;
...
...
src/event/MultiSocketMonitor.hxx
View file @
cf483107
...
...
@@ -223,7 +223,7 @@ private:
IdleMonitor
::
Schedule
();
}
virtual
void
OnIdle
()
final
;
virtual
void
OnIdle
()
noexcept
final
;
};
#endif
src/lib/nfs/Manager.cxx
View file @
cf483107
...
...
@@ -110,7 +110,7 @@ NfsManager::CollectGarbage()
}
void
NfsManager
::
OnIdle
()
NfsManager
::
OnIdle
()
noexcept
{
CollectGarbage
();
}
src/lib/nfs/Manager.hxx
View file @
cf483107
...
...
@@ -116,7 +116,7 @@ private:
void
CollectGarbage
();
/* virtual methods from IdleMonitor */
void
OnIdle
()
override
;
void
OnIdle
()
noexcept
override
;
};
#endif
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