projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9d5cb
)
Move the alignment attribute in TokenBucket to a place where MSVC supports it
author
Christopher Dykes
<cdykes@fb.com>
Thu, 8 Sep 2016 01:44:32 +0000
(18:44 -0700)
committer
Facebook 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
patch
|
blob
|
history
diff --git
a/folly/TokenBucket.h
b/folly/TokenBucket.h
index 4cd32561e728fe9842bb86bffebffd3e17d343fe..7ddf8fc23345359764f2a60dc98a84380fb3a8ed 100644
(file)
--- a/
folly/TokenBucket.h
+++ b/
folly/TokenBucket.h
@@
-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_
;
};
/**