Move thrift/lib/cpp/async to folly.
authorDave Watson <davejwatson@fb.com>
Wed, 12 Mar 2014 16:25:43 +0000 (09:25 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 18 Mar 2014 17:01:39 +0000 (10:01 -0700)
commit843b72c05efafc75f2545bc84b856ae6fad5c53b
tree7da2219534b7a45476e1e86a2df6cbed034dca45
parente22f0a67786b71aa5d73bfe1b3cd30f9ba329356
Move thrift/lib/cpp/async to folly.

Summary:
Move the minimum amount of stuff and still have everything compile.  Would like to move TAsyncSocket/ServerSocket/SSL/UDP eventually, but not this round.

thrift async is used very widely now: thrift, proxygen, newer mysql async interface, even trying it out in memcache.  A common complaint is that it doesn't get wide enough notice under thrift/, so let's move it to folly/.  After moving TAsyncSocket, both HHVM and proxygen could avoid a dep on thrift as well.

Changes:
* mv files to folly/io/async
* remove 'T' prefix on classes/filenames
* change namespace to 'folly'
* remove any thrift references.

Tried this before in D470080, this time doesn't attempt to abstract libevent

@override-unit-failures

Test Plan:
fbconfig -r thrift; fbmake dev.
Will iterate on any other contbuild failures

Reviewed By: pgriess@fb.com

FB internal diff: D1195393
14 files changed:
folly/Makefile.am
folly/configure.ac
folly/io/async/AsyncTimeout.cpp [new file with mode: 0644]
folly/io/async/AsyncTimeout.h [new file with mode: 0644]
folly/io/async/EventBase.cpp [new file with mode: 0644]
folly/io/async/EventBase.h [new file with mode: 0644]
folly/io/async/EventFDWrapper.h [new file with mode: 0644]
folly/io/async/EventHandler.cpp [new file with mode: 0644]
folly/io/async/EventHandler.h [new file with mode: 0644]
folly/io/async/EventUtil.h [new file with mode: 0644]
folly/io/async/NotificationQueue.h [new file with mode: 0644]
folly/io/async/Request.cpp [new file with mode: 0644]
folly/io/async/Request.h [new file with mode: 0644]
folly/io/async/TimeoutManager.h [new file with mode: 0644]