add EventBase-local storage abstraction
authorMark McDuff <mcduff@fb.com>
Tue, 30 Jun 2015 01:26:40 +0000 (18:26 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 30 Jul 2015 16:22:06 +0000 (09:22 -0700)
commitb74275bb6e90717575e138155c004b607f7b3364
tree39c631c53176882910d4e804d8b169d47915d3f9
parent5b8183c14d2391c39d619a885622979b53e246f1
add EventBase-local storage abstraction

Summary: This has come up a couple times, and the implementation is never nice.  Just like we have thread-local storage, it will be useful to also have evb-local storage.  Provides at pretty simple get/set/delete interface (see unittest).

Reviewed By: @djwatson

Differential Revision: D2203063
folly/Makefile.am
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/EventBaseLocal.cpp [new file with mode: 0644]
folly/io/async/EventBaseLocal.h [new file with mode: 0644]
folly/io/async/test/EventBaseLocalTest.cpp [new file with mode: 0644]