Move the alignment attribute in TokenBucket to a place where MSVC supports it
authorChristopher Dykes <cdykes@fb.com>
Thu, 8 Sep 2016 01:44:32 +0000 (18:44 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 8 Sep 2016 01:53:35 +0000 (18:53 -0700)
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

index 4cd32561e728fe9842bb86bffebffd3e17d343fe..7ddf8fc23345359764f2a60dc98a84380fb3a8ed 100644 (file)
@@ -221,7 +221,7 @@ class ParameterizedDynamicTokenBucket {
     return true;
   }
 
-  std::atomic<double> zeroTime_ FOLLY_ALIGN_TO_AVOID_FALSE_SHARING;
+  FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic<double> zeroTime_;
 };
 
 /**