Permalink
Browse files

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
  • Loading branch information...
1 parent a449e4a commit bae2dccfaa8f43977575cd4df24bae142849ea6e @dorserg dorserg committed with jdelong Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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<Op*> completed_;
};

0 comments on commit bae2dcc

Please sign in to comment.