From bae2dccfaa8f43977575cd4df24bae142849ea6e Mon Sep 17 00:00:00 2001 From: Sergey Doroshenko Date: Tue, 12 Feb 2013 09:17:53 -0800 Subject: [PATCH] Make AsyncIO::capacity_ const Summary: It is set once, and is never changed afterwards. Test Plan: compiled, unit tests Reviewed By: tudorb@fb.com FB internal diff: D706125 --- folly/experimental/io/AsyncIO.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/experimental/io/AsyncIO.h b/folly/experimental/io/AsyncIO.h index 4abd12e4..18dec376 100644 --- a/folly/experimental/io/AsyncIO.h +++ b/folly/experimental/io/AsyncIO.h @@ -167,7 +167,7 @@ class AsyncIO : private boost::noncopyable { io_context_t ctx_; size_t pending_; - size_t capacity_; + const size_t capacity_; int pollFd_; std::vector completed_; }; -- 2.34.1