Rework folly::AsyncIO interface to make it easier for other classes to use Op
authorTudor Bosman <tudorb@fb.com>
Thu, 14 Feb 2013 23:26:26 +0000 (15:26 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:07:33 +0000 (17:07 -0700)
commita8b4b5ea1e090f4dff374aec509119e842297956
tree01efab2059c02f3a48a7ce2dc69a7ec856c782a0
parentcf583f13de678c1557ccf7edade5b3340c0e3908
Rework folly::AsyncIO interface to make it easier for other classes to use Op

Summary:
AsyncIOOp no longer requires derivation to be able to use callbacks; the
callback is passed in.  This makes composition easier (see AsyncIOQueue, added
in this diff).

Test Plan: async_io_test, test added

Reviewed By: lucian@fb.com

FB internal diff: D709648
folly/experimental/io/AsyncIO.cpp
folly/experimental/io/AsyncIO.h
folly/experimental/io/test/AsyncIOTest.cpp