|
proxygen
|
#include <EventBaseLocal.h>
Public Member Functions | |
| EventBaseLocalBase () | |
| ~EventBaseLocalBase () override | |
| void | erase (EventBase &evb) |
| void | onEventBaseDestruction (EventBase &evb) override |
Public Member Functions inherited from folly::detail::EventBaseLocalBaseBase | |
| virtual | ~EventBaseLocalBaseBase ()=default |
Protected Member Functions | |
| void | setVoid (EventBase &evb, std::shared_ptr< void > &&ptr) |
| void * | getVoid (EventBase &evb) |
Protected Attributes | |
| folly::Synchronized< std::unordered_set< EventBase * > > | eventBases_ |
| std::size_t | key_ {keyCounter_++} |
Static Protected Attributes | |
| static std::atomic< std::size_t > | keyCounter_ {0} |
Definition at line 31 of file EventBaseLocal.h.
|
inline |
Definition at line 33 of file EventBaseLocal.h.
References erase(), getVoid(), onEventBaseDestruction(), ptr, setVoid(), and ~EventBaseLocalBase().
|
override |
Definition at line 25 of file EventBaseLocal.cpp.
References eventBases_, and key_.
Referenced by EventBaseLocalBase().
| void folly::detail::EventBaseLocalBase::erase | ( | EventBase & | evb | ) |
Definition at line 41 of file EventBaseLocal.cpp.
References folly::EventBase::dcheckIsInEventBaseThread(), eventBases_, key_, folly::EventBase::localStorage_, and folly::EventBase::localStorageToDtor_.
Referenced by EventBaseLocalBase(), and TEST().
|
protected |
Definition at line 35 of file EventBaseLocal.cpp.
References folly::EventBase::dcheckIsInEventBaseThread(), folly::get_default(), key_, and folly::EventBase::localStorage_.
Referenced by EventBaseLocalBase(), folly::EventBaseLocal< T >::get(), folly::EventBaseLocal< T >::getOrCreate(), and folly::EventBaseLocal< T >::getOrCreateFn().
|
overridevirtual |
Implements folly::detail::EventBaseLocalBaseBase.
Definition at line 50 of file EventBaseLocal.cpp.
References folly::EventBase::dcheckIsInEventBaseThread(), and eventBases_.
Referenced by EventBaseLocalBase().
|
protected |
Definition at line 56 of file EventBaseLocal.cpp.
References folly::EventBase::dcheckIsInEventBaseThread(), eventBases_, key_, keyCounter_, folly::EventBase::localStorage_, folly::EventBase::localStorageToDtor_, folly::gen::move, and ptr.
Referenced by folly::EventBaseLocal< T >::emplace(), EventBaseLocalBase(), folly::EventBaseLocal< T >::getOrCreate(), and folly::EventBaseLocal< T >::getOrCreateFn().
|
protected |
Definition at line 42 of file EventBaseLocal.h.
Referenced by erase(), onEventBaseDestruction(), setVoid(), and ~EventBaseLocalBase().
|
protected |
Definition at line 44 of file EventBaseLocal.h.
Referenced by erase(), getVoid(), setVoid(), and ~EventBaseLocalBase().
|
staticprotected |
Definition at line 43 of file EventBaseLocal.h.
Referenced by setVoid().