Make folly::AsyncIO thread safe
authorTudor Bosman <tudorb@fb.com>
Wed, 8 May 2013 21:40:10 +0000 (14:40 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:27 +0000 (11:01 -0700)
commitd10b650899b3caac08364fb888740bcb762dc7f7
treee6932de2d8be1f890833beb23b95debe1637f2d7
parente49f2768b32028b9b64243b783624bd7d37ec6dd
Make folly::AsyncIO thread safe

Summary:
You can now submit to the same AsyncIO object from different threads, but you
must still reap from only one thread at a time.

Test Plan: async_io_test, added MT test

Reviewed By: philipp@fb.com

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