From 902b5b00a4ab75f9fd47249d01dab7a0449dda73 Mon Sep 17 00:00:00 2001 From: Takuya ASADA Date: Thu, 8 Jan 2015 19:02:42 +0900 Subject: [PATCH] Make pollable_fd::_s as private variable We can use pollable_fd::writeable/readable instead. Signed-off-by: Takuya ASADA --- core/reactor.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/reactor.hh b/core/reactor.hh index 2aaaf415b1..beb9285380 100644 --- a/core/reactor.hh +++ b/core/reactor.hh @@ -165,7 +165,6 @@ size_t iovec_len(const std::vector& iov) class pollable_fd { public: using speculation = pollable_fd_state::speculation; - std::unique_ptr _s; pollable_fd(file_desc fd, speculation speculate = speculation()) : _s(std::make_unique(std::move(fd), speculate)) {} public: @@ -191,6 +190,8 @@ protected: friend class reactor; friend class readable_eventfd; friend class writeable_eventfd; +private: + std::unique_ptr _s; }; class connected_socket_impl {