From dd6fff7166b6fe157ae5bc64366969ffb5fd1b7d Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 7 Sep 2016 18:44:32 -0700 Subject: [PATCH] Move the alignment attribute in TokenBucket to a place where MSVC supports it Summary: MSVC doesn't support the aligment attribute being after the field name. Reviewed By: yfeldblum Differential Revision: D3832314 fbshipit-source-id: 6a56db245e01922ede6b9b93eb1c8aecc835e2bf --- folly/TokenBucket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/TokenBucket.h b/folly/TokenBucket.h index 4cd32561..7ddf8fc2 100644 --- a/folly/TokenBucket.h +++ b/folly/TokenBucket.h @@ -221,7 +221,7 @@ class ParameterizedDynamicTokenBucket { return true; } - std::atomic zeroTime_ FOLLY_ALIGN_TO_AVOID_FALSE_SHARING; + FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic zeroTime_; }; /** -- 2.34.1