We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e7c644 commit 239508cCopy full SHA for 239508c
1 file changed
src/bthread/task_group.h
@@ -56,7 +56,7 @@ class ExitException : public std::exception {
56
// Otherwise, use mutex to guarantee atomicity.
57
class AtomicInteger128 {
58
public:
59
- struct Value {
+ struct BAIDU_CACHELINE_ALIGNMENT Value {
60
int64_t v1;
61
int64_t v2;
62
};
@@ -72,7 +72,7 @@ class AtomicInteger128 {
72
void store(Value value);
73
74
private:
75
- Value BAIDU_CACHELINE_ALIGNMENT _value{};
+ Value _value{};
76
// Used to protect `_cpu_time_stat' when __x86_64__ and __ARM_NEON is not defined.
77
FastPthreadMutex _mutex;
78
0 commit comments