Commit d5b67c25 authored by Maged Michael's avatar Maged Michael Committed by Facebook Github Bot

UnboundedQueue: Use alignas instead of FOLLY_ALIGNED

Summary: Use alignas instead of FOLLY_ALIGNED

Reviewed By: Orvid

Differential Revision: D6554984

fbshipit-source-id: 5b11ac387faa137aa8dd0c35b6e9bb999cf0bf2d
parent 82d8337f
...@@ -216,11 +216,9 @@ class UnboundedQueue { ...@@ -216,11 +216,9 @@ class UnboundedQueue {
static_assert(LgSegmentSize < 32, "LgSegmentSize must be < 32"); static_assert(LgSegmentSize < 32, "LgSegmentSize must be < 32");
static_assert(LgAlign < 16, "LgAlign must be < 16"); static_assert(LgAlign < 16, "LgAlign must be < 16");
FOLLY_ALIGNED(Align) alignas(Align) Atom<Segment*> head_;
Atom<Segment*> head_;
Atom<Ticket> consumerTicket_; Atom<Ticket> consumerTicket_;
FOLLY_ALIGNED(Align) alignas(Align) Atom<Segment*> tail_;
Atom<Segment*> tail_;
Atom<Ticket> producerTicket_; Atom<Ticket> producerTicket_;
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment