Let SaturatingSemaphore::try_wait be non-const and add ready
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 30 Nov 2017 22:56:07 +0000 (14:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 30 Nov 2017 23:05:43 +0000 (15:05 -0800)
commit48d3f5e1691033d00ecc2ef0c3ced83ce148705a
tree2a7f4b412edcfd8ce5e8955ac3dcb1af2a2b148e
parentb71a1b76b3dd7d63bc1d27ed292ddb604fdd9388
Let SaturatingSemaphore::try_wait be non-const and add ready

Summary:
[Folly] Let `SaturatingSemaphore::try_wait` be non-`const` and add `ready`.

For internal API consistency.

Reviewed By: magedm

Differential Revision: D6450089

fbshipit-source-id: 65b9b723672521710a69719b192eb2922a27b778
folly/synchronization/SaturatingSemaphore.h
folly/synchronization/test/SaturatingSemaphoreTest.cpp