C++ - better => butter

Summary:
Renaming the `better` utilities to `butter`:
- to prevent claims that this library is superior to others - it really depends on use cases
- to indicate ease of use throughout the codebase, easily spread like butter

Changelog: [C++][Changed] Renaming C++ better util to butter, used by Fabric internals

Reviewed By: JoshuaGross

Differential Revision: D33242764

fbshipit-source-id: 26dc95d9597c61ce8e66708e44ed545e0fc5cff5
This commit is contained in:
Kevin Gozali
2021-12-20 22:25:14 -08:00
committed by Facebook GitHub Bot
parent b4dab1a537
commit fb39d45ed5
107 changed files with 370 additions and 370 deletions
@@ -270,7 +270,7 @@ void ShadowTree::setCommitMode(CommitMode commitMode) const {
auto revision = ShadowTreeRevision{};
{
std::unique_lock<better::shared_mutex> lock(commitMutex_);
std::unique_lock<butter::shared_mutex> lock(commitMutex_);
if (commitMode_ == commitMode) {
return;
}
@@ -287,7 +287,7 @@ void ShadowTree::setCommitMode(CommitMode commitMode) const {
}
CommitMode ShadowTree::getCommitMode() const {
std::shared_lock<better::shared_mutex> lock(commitMutex_);
std::shared_lock<butter::shared_mutex> lock(commitMutex_);
return commitMode_;
}
@@ -330,7 +330,7 @@ CommitStatus ShadowTree::tryCommit(
{
// Reading `currentRevision_` in shared manner.
std::shared_lock<better::shared_mutex> lock(commitMutex_);
std::shared_lock<butter::shared_mutex> lock(commitMutex_);
commitMode = commitMode_;
oldRevision = currentRevision_;
}
@@ -367,7 +367,7 @@ CommitStatus ShadowTree::tryCommit(
{
// Updating `currentRevision_` in unique manner if it hasn't changed.
std::unique_lock<better::shared_mutex> lock(commitMutex_);
std::unique_lock<butter::shared_mutex> lock(commitMutex_);
if (currentRevision_.number != oldRevision.number) {
return CommitStatus::Failed;
@@ -410,7 +410,7 @@ CommitStatus ShadowTree::tryCommit(
}
ShadowTreeRevision ShadowTree::getCurrentRevision() const {
std::shared_lock<better::shared_mutex> lock(commitMutex_);
std::shared_lock<butter::shared_mutex> lock(commitMutex_);
return currentRevision_;
}