proxygen
|
#include <IOObjectCache.h>
Public Types | |
typedef std::function< std::shared_ptr< T >folly::EventBase *)> | TFactory |
Public Member Functions | |
IOObjectCache ()=default | |
IOObjectCache (TFactory factory) | |
std::shared_ptr< T > | get () |
void | setFactory (TFactory factory) |
Private Attributes | |
folly::ThreadLocal< std::map< folly::EventBase *, std::shared_ptr< T > > > | cache_ |
TFactory | factory_ |
Definition at line 44 of file IOObjectCache.h.
typedef std::function<std::shared_ptr<T>folly::EventBase*)> folly::IOObjectCache< T >::TFactory |
Definition at line 46 of file IOObjectCache.h.
|
default |
|
inlineexplicit |
Definition at line 49 of file IOObjectCache.h.
|
inline |
Definition at line 51 of file IOObjectCache.h.
References folly::IOObjectCache< T >::cache_, folly::IOObjectCache< T >::factory_, and folly::getIOExecutor().
|
inline |
Definition at line 63 of file IOObjectCache.h.
References folly::IOObjectCache< T >::factory_, and folly::gen::move.
|
private |
Definition at line 68 of file IOObjectCache.h.
Referenced by folly::IOObjectCache< T >::get().
|
private |
Definition at line 69 of file IOObjectCache.h.
Referenced by folly::IOObjectCache< T >::get(), and folly::IOObjectCache< T >::setFactory().