Add ProducerConsumerQueue::capacity()
authorPeter Alexander <pja@fb.com>
Thu, 19 Oct 2017 09:46:56 +0000 (02:46 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 19 Oct 2017 09:52:54 +0000 (02:52 -0700)
commit7111b632fca2d01ea33c974aa68ffa021b75ae24
tree75f76aa08340028471911f366a0bd71e69410f3b
parentdce47b8a0cc0e90f93844e66651d68340ed2f940
Add ProducerConsumerQueue::capacity()

Summary: Simple addition. Easy to track externally, but might as well provide it in the class if it is readily available.

Reviewed By: yfeldblum

Differential Revision: D6093826

fbshipit-source-id: 9d8c02891b2cea9ce0d3f6ea78e1e0055b536eb8
folly/ProducerConsumerQueue.h
folly/test/ProducerConsumerQueueTest.cpp