Add Tearable, for concurrently-modified non-atomic objects.
authorDavid Goldblatt <davidgoldblatt@fb.com>
Sat, 13 Jan 2018 07:57:16 +0000 (23:57 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 13 Jan 2018 08:05:04 +0000 (00:05 -0800)
commit98d1077ce0603b0713353d638cb1436a28827af6
treea9566a402d1c0e178af3218f29fe55f42644ebb8
parent47b2f8dfdc39b149accf9ae830551eee670d98d1
Add Tearable, for concurrently-modified non-atomic objects.

Summary:
This adds the Tearable class template, which holds storage for an
arbitrarily-sized object that can be concurrently read or written without any
external synchronization.

Reviewed By: yfeldblum, djwatson

Differential Revision: D6422334

fbshipit-source-id: ee3853bbd393ac8e30dca6439c61606cc5495f92
folly/Makefile.am
folly/synchronization/Tearable.h [new file with mode: 0644]
folly/synchronization/test/TearableTest.cpp [new file with mode: 0644]