X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FProducerConsumerQueue.h;h=fd9c94a0dc3fd49edda24695cb16323be4580a77;hb=f2d4ac87c2a6c1903e181f4bc76ce6e7b13620c1;hp=13948be45218e374777a012ad392d8c59c44cb76;hpb=fbfe105970bcf88e8c123046f84bebdfe24f8801;p=folly.git diff --git a/folly/ProducerConsumerQueue.h b/folly/ProducerConsumerQueue.h index 13948be4..fd9c94a0 100644 --- a/folly/ProducerConsumerQueue.h +++ b/folly/ProducerConsumerQueue.h @@ -167,15 +167,15 @@ struct ProducerConsumerQueue { return ret; } -private: - char pad0_[CacheLocality::kFalseSharingRange]; - const uint32_t size_; - T* const records_; + private: + char pad0_[CacheLocality::kFalseSharingRange]; + const uint32_t size_; + T* const records_; - FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic readIndex_; - FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic writeIndex_; + FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic readIndex_; + FOLLY_ALIGN_TO_AVOID_FALSE_SHARING std::atomic writeIndex_; - char pad1_[CacheLocality::kFalseSharingRange - sizeof(writeIndex_)]; + char pad1_[CacheLocality::kFalseSharingRange - sizeof(writeIndex_)]; }; }