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
a8e70f18
Commit
a8e70f18
authored
Feb 05, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/*: use `using` instead of `typedef`
parent
ddd9f20a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
MaskMonitor.hxx
src/event/MaskMonitor.hxx
+1
-1
SignalMonitor.hxx
src/event/SignalMonitor.hxx
+1
-1
SocketEvent.hxx
src/event/SocketEvent.hxx
+1
-1
No files found.
src/event/MaskMonitor.hxx
View file @
a8e70f18
...
...
@@ -34,7 +34,7 @@
class
MaskMonitor
final
{
InjectEvent
event
;
typedef
BoundMethod
<
void
(
unsigned
)
noexcept
>
Callback
;
using
Callback
=
BoundMethod
<
void
(
unsigned
)
noexcept
>
;
const
Callback
callback
;
std
::
atomic_uint
pending_mask
;
...
...
src/event/SignalMonitor.hxx
View file @
a8e70f18
...
...
@@ -26,7 +26,7 @@ class EventLoop;
#include "util/BindMethod.hxx"
typedef
BoundMethod
<
void
()
noexcept
>
SignalHandler
;
using
SignalHandler
=
BoundMethod
<
void
()
noexcept
>
;
/**
* Initialise the signal monitor subsystem.
...
...
src/event/SocketEvent.hxx
View file @
a8e70f18
...
...
@@ -75,7 +75,7 @@ public:
*/
static
constexpr
unsigned
IMPLICIT_FLAGS
=
ERROR
|
HANGUP
;
typedef
std
::
make_signed
<
size_t
>::
type
ssize_t
;
using
ssize_t
=
std
::
make_signed
<
size_t
>::
type
;
SocketEvent
(
EventLoop
&
_loop
,
Callback
_callback
,
SocketDescriptor
_fd
=
SocketDescriptor
::
Undefined
())
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