From 82ab3bae08aaa5ce440d027eea53101e05377062 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Mon, 30 Jun 2014 13:32:17 -0700 Subject: [PATCH] (wangle) s/continuation_/callback/ (missed some) Summary: In the spirit of D1406753 Test Plan: still builds and tests pass Reviewed By: hannesr@fb.com Subscribers: jsedgwick, net-systems@, fugalh, exa FB internal diff: D1412002 --- folly/wangle/detail/State.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/folly/wangle/detail/State.h b/folly/wangle/detail/State.h index ccba9acd..b971a188 100644 --- a/folly/wangle/detail/State.h +++ b/folly/wangle/detail/State.h @@ -48,14 +48,14 @@ class State { template void setCallback_(F func) { - if (continuation_) { + if (callback_) { throw std::logic_error("setCallback_ called twice"); } - continuation_ = std::move(func); + callback_ = std::move(func); if (shouldContinue_.test_and_set()) { - continuation_(std::move(*value_)); + callback_(std::move(*value_)); delete this; } } @@ -68,7 +68,7 @@ class State { value_ = std::move(t); if (shouldContinue_.test_and_set()) { - continuation_(std::move(*value_)); + callback_(std::move(*value_)); delete this; } } @@ -96,7 +96,7 @@ class State { private: std::atomic_flag shouldContinue_ = ATOMIC_FLAG_INIT; folly::Optional> value_; - std::function&&)> continuation_; + std::function&&)> callback_; }; template -- 2.34.1