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
fdd101c4
Commit
fdd101c4
authored
Aug 06, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/SignalMonitor: add `noexcept`
parent
4218f56f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
SignalMonitor.cxx
src/event/SignalMonitor.cxx
+4
-4
SignalMonitor.hxx
src/event/SignalMonitor.hxx
+1
-1
No files found.
src/event/SignalMonitor.cxx
View file @
fdd101c4
...
...
@@ -64,7 +64,7 @@ public:
using
SocketMonitor
::
GetEventLoop
;
#ifdef USE_SIGNALFD
void
Update
(
sigset_t
&
mask
)
{
void
Update
(
sigset_t
&
mask
)
noexcept
{
const
bool
was_open
=
SocketMonitor
::
IsDefined
();
fd
.
Create
(
mask
);
...
...
@@ -75,7 +75,7 @@ public:
}
}
#else
void
WakeUp
()
{
void
WakeUp
()
noexcept
{
fd
.
Write
();
}
#endif
...
...
@@ -105,7 +105,7 @@ static Manual<SignalMonitor> monitor;
* would inherit the blocked signals.
*/
static
void
at_fork_child
()
at_fork_child
()
noexcept
{
sigprocmask
(
SIG_UNBLOCK
,
&
signal_mask
,
nullptr
);
}
...
...
@@ -113,7 +113,7 @@ at_fork_child()
#else
static
void
SignalCallback
(
int
signo
)
SignalCallback
(
int
signo
)
noexcept
{
assert
(
signal_handlers
[
signo
]);
...
...
src/event/SignalMonitor.hxx
View file @
fdd101c4
...
...
@@ -59,7 +59,7 @@ SignalMonitorInit(EventLoop &)
}
static
inline
void
SignalMonitorFinish
()
SignalMonitorFinish
()
noexcept
{
}
...
...
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