Commit ff1046b8 authored by Nathan Bronson's avatar Nathan Bronson Committed by Sara Golemon

folly/MPMCQueue sizeGuess should return a signed int

Summary:
Like size(), sizeGuess() is allowed to return a negative value,
so it should be ssize_t instead of uint64_t.

Test Plan: fbmake, wait for contbuild

Reviewed By: tudorb@fb.com

FB internal diff: D893075
parent 8035fc11
......@@ -196,7 +196,7 @@ class MPMCQueue : boost::noncopyable {
/// Returns is a guess at size() for contexts that don't need a precise
/// value, such as stats.
uint64_t sizeGuess() const noexcept {
ssize_t sizeGuess() const noexcept {
return writeCount() - readCount();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment