projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a449e4a
)
Make AsyncIO::capacity_ const
author
Sergey Doroshenko
<sdoroshenko@fb.com>
Tue, 12 Feb 2013 17:17:53 +0000
(09:17 -0800)
committer
Jordan 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
patch
|
blob
|
history
diff --git
a/folly/experimental/io/AsyncIO.h
b/folly/experimental/io/AsyncIO.h
index 4abd12e4ebbbf398885cfb9ed5a1f259fc627506..18dec376a6bdb1ab91e42342e9891a88372858d7 100644
(file)
--- 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<Op*> completed_;
};