Make AsyncIO::capacity_ const
authorSergey Doroshenko <sdoroshenko@fb.com>
Tue, 12 Feb 2013 17:17:53 +0000 (09:17 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:07:17 +0000 (17:07 -0700)
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

index 4abd12e4ebbbf398885cfb9ed5a1f259fc627506..18dec376a6bdb1ab91e42342e9891a88372858d7 100644 (file)
@@ -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<Op*> completed_;
 };