EventBaseLocal cleanup
authorAndrii Grynenko <andrii@fb.com>
Thu, 20 Apr 2017 21:54:37 +0000 (14:54 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Apr 2017 22:10:16 +0000 (15:10 -0700)
commit7de5a995c46b4ef706eda82483fe7d25f33a11ea
treee5485fad904ba3936f41cb3e1447cb645a5db509
parent049e3d99a99a1567574fb57c34280565eaf4ff1e
EventBaseLocal cleanup

Summary:
1. Restrict EventBaseLocal API to only be used from EventBase thread to avoid extra locking.
2. Make sure objects stored in EventBaseLocal are destroyed in EventBase thread.

Reviewed By: yfeldblum

Differential Revision: D4918282

fbshipit-source-id: b7cb4c2b62fef85a9b1d796fa71af8af9087479d
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/EventBaseLocal.cpp
folly/io/async/EventBaseLocal.h
folly/io/async/test/EventBaseLocalTest.cpp