From: Christopher Dykes Date: Thu, 8 Sep 2016 01:44:32 +0000 (-0700) Subject: Move the alignment attribute in TokenBucket to a place where MSVC supports it X-Git-Tag: v2016.09.12.00~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dd6fff7166b6fe157ae5bc64366969ffb5fd1b7d;p=folly.git 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 --- 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_; }; /**