Fix error in ProducerQueue::isEmpty
authorMichael Curtiss <mcurtiss@fb.com>
Tue, 5 Jun 2012 05:16:44 +0000 (22:16 -0700)
committerJordan DeLong <jdelong@fb.com>
Tue, 5 Jun 2012 05:59:14 +0000 (22:59 -0700)
commite1822c55a928d4bc3a3ba4bddcfdfe20062d8d34
tree78b7e6b79bec3d91e36894e5db145a831bf896a8
parentf0ced414840d5c29e6ced3466004dc1a122b51c1
Fix error in ProducerQueue::isEmpty

Summary:
Oops.

Also: documented the slightly confusing behavior w.r.t. 'size'.

Test Plan: Added a unit test.

Reviewers: tjackson, jdelong

Reviewed By: jdelong

CC: folly@lists, lr, bagashe
Differential Revision: https://phabricator.fb.com/D486832
folly/ProducerConsumerQueue.h
folly/test/ProducerConsumerQueueTest.cpp