proxygen
|
#include <SynchronizedPtr.h>
Public Types | |
using | pointer_type = PointerType |
using | element_type = typename std::pointer_traits< pointer_type >::element_type |
using | const_element_type = typename std::add_const< element_type >::type |
using | read_locked_element = SynchronizedPtrLockedElement< typename inner_type::ConstLockedPtr, const_element_type > |
using | write_locked_element = SynchronizedPtrLockedElement< typename inner_type::LockedPtr, element_type > |
using | write_locked_pointer = typename inner_type::LockedPtr |
Public Member Functions | |
template<typename... Args> | |
SynchronizedPtr (Args...args) | |
SynchronizedPtr ()=default | |
SynchronizedPtr (SynchronizedPtr const &)=default | |
SynchronizedPtr (SynchronizedPtr &&)=default | |
SynchronizedPtr & | operator= (SynchronizedPtr const &)=default |
SynchronizedPtr & | operator= (SynchronizedPtr &&)=default |
read_locked_element | rlock () const |
template<class Function > | |
auto | withRLock (Function &&function) const |
write_locked_element | wlock () |
template<class Function > | |
auto | withWLock (Function &&function) |
write_locked_pointer | wlockPointer () |
template<class Function > | |
auto | withWLockPointer (Function &&function) |
Private Types | |
using | inner_type = Synchronized< PointerType, MutexType > |
Private Attributes | |
inner_type | inner_ |
Definition at line 56 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::const_element_type = typename std::add_const<element_type>::type |
Definition at line 63 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::element_type = typename std::pointer_traits<pointer_type>::element_type |
Definition at line 62 of file SynchronizedPtr.h.
|
private |
Definition at line 57 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::pointer_type = PointerType |
Definition at line 61 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::read_locked_element = SynchronizedPtrLockedElement< typename inner_type::ConstLockedPtr, const_element_type> |
Definition at line 66 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::write_locked_element = SynchronizedPtrLockedElement< typename inner_type::LockedPtr, element_type> |
Definition at line 69 of file SynchronizedPtr.h.
using folly::SynchronizedPtr< PointerType, MutexType >::write_locked_pointer = typename inner_type::LockedPtr |
Definition at line 70 of file SynchronizedPtr.h.
|
inlineexplicit |
Definition at line 73 of file SynchronizedPtr.h.
|
default |
|
default |
|
default |
|
default |
|
default |
|
inline |
Definition at line 85 of file SynchronizedPtr.h.
|
inline |
|
inline |
|
inline |
Definition at line 112 of file SynchronizedPtr.h.
|
inline |
Definition at line 94 of file SynchronizedPtr.h.
|
inline |
Definition at line 107 of file SynchronizedPtr.h.
|
private |
Definition at line 58 of file SynchronizedPtr.h.