UnboundedQueue: Use alignas instead of FOLLY_ALIGNED
authorMaged Michael <magedmichael@fb.com>
Thu, 14 Dec 2017 02:54:26 +0000 (18:54 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Dec 2017 03:14:00 +0000 (19:14 -0800)
Summary: Use alignas instead of FOLLY_ALIGNED

Reviewed By: Orvid

Differential Revision: D6554984

fbshipit-source-id: 5b11ac387faa137aa8dd0c35b6e9bb999cf0bf2d

folly/concurrency/UnboundedQueue.h

index 7320b6cd594ee59d57a4b206f5894b2c4e0b6b1e..2f2571cc8ecab14c2c9e9f2a722ed18485ea63a5 100644 (file)
@@ -216,11 +216,9 @@ class UnboundedQueue {
   static_assert(LgSegmentSize < 32, "LgSegmentSize must be < 32");
   static_assert(LgAlign < 16, "LgAlign must be < 16");
 
-  FOLLY_ALIGNED(Align)
-  Atom<Segment*> head_;
+  alignas(Align) Atom<Segment*> head_;
   Atom<Ticket> consumerTicket_;
-  FOLLY_ALIGNED(Align)
-  Atom<Segment*> tail_;
+  alignas(Align) Atom<Segment*> tail_;
   Atom<Ticket> producerTicket_;
 
  public: