Support NotificationQueue on iOS/Android
authorSean Cannella <seanc@fb.com>
Fri, 17 Oct 2014 20:38:30 +0000 (13:38 -0700)
committerdcsommer <dcsommer@fb.com>
Wed, 29 Oct 2014 23:01:33 +0000 (16:01 -0700)
commitfc0cd8934ac2fdbd0c0be69d7804283812012184
tree64f4ba622d28a1d178cd9c5d380d9ff4337f9ff0
parentacc54589227951293f8d3943911f4311468605c9
Support NotificationQueue on iOS/Android

Summary:
This is the last of the changes to make folly and thrift portable. The old
thrift SpinLock implementation is exactly we
want here so port this into folly. If someone later makes efficeint
versions of MicroSpinLock for platforms other than x64 they can easily
be plugged in without changing the calling code.

Test Plan: compiled on multiple platforms

Reviewed By: alandau@fb.com

Subscribers: folly-diffs@, ldbrandy, trunkagent, alandau, bmatheny, njormrod, mshneer, shikong, benyluo, kmdent, fma, ranjeeth, subodh

FB internal diff: D1621717

Tasks: 5183325
folly/io/PortableSpinLock.h [new file with mode: 0644]
folly/io/async/NotificationQueue.h