Commit a8e70f18 authored by Max Kellermann's avatar Max Kellermann

event/*: use `using` instead of `typedef`

parent ddd9f20a
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
class MaskMonitor final { class MaskMonitor final {
InjectEvent event; InjectEvent event;
typedef BoundMethod<void(unsigned) noexcept> Callback; using Callback = BoundMethod<void(unsigned) noexcept>;
const Callback callback; const Callback callback;
std::atomic_uint pending_mask; std::atomic_uint pending_mask;
......
...@@ -26,7 +26,7 @@ class EventLoop; ...@@ -26,7 +26,7 @@ class EventLoop;
#include "util/BindMethod.hxx" #include "util/BindMethod.hxx"
typedef BoundMethod<void() noexcept> SignalHandler; using SignalHandler = BoundMethod<void() noexcept>;
/** /**
* Initialise the signal monitor subsystem. * Initialise the signal monitor subsystem.
......
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
*/ */
static constexpr unsigned IMPLICIT_FLAGS = ERROR|HANGUP; 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, SocketEvent(EventLoop &_loop, Callback _callback,
SocketDescriptor _fd=SocketDescriptor::Undefined()) noexcept SocketDescriptor _fd=SocketDescriptor::Undefined()) noexcept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment