(folly) Add lock holder interface to flat combining. Change an assert to a static_assert.
authorMaged Michael <magedmichael@fb.com>
Sat, 25 Mar 2017 10:28:15 +0000 (03:28 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 25 Mar 2017 10:34:55 +0000 (03:34 -0700)
commit2e0f52d25a6e165f406a922c2ab657b43e315eae
tree26d3e7428bbaaa29c229a078cbc6e79f91098607
parent01944ccd082a967d6a030c5a511a913840f00893
(folly) Add lock holder interface to flat combining. Change an assert to a static_assert.

Summary:
Two changes:
- Add a lock holder interface to enable users to move exclusive access and implicitly release the held lock.
- Change an assert to a static_assert to check at compile time if a provided function fits in the Function structure without dynamic allocation.

Reviewed By: djwatson

Differential Revision: D4770229

fbshipit-source-id: 89408164c08d7660231a6ca4e37637dd688356cd
folly/experimental/flat_combining/FlatCombining.h
folly/experimental/flat_combining/test/FlatCombiningTestHelpers.h