proxygen
|
#include <Hazptr-fwd.h>
Public Member Functions | |
FOLLY_ALWAYS_INLINE | hazptr_local () |
hazptr_local (const hazptr_local &)=delete | |
hazptr_local & | operator= (const hazptr_local &)=delete |
hazptr_local (hazptr_local &&)=delete | |
hazptr_local & | operator= (hazptr_local &&)=delete |
FOLLY_ALWAYS_INLINE | ~hazptr_local () |
FOLLY_ALWAYS_INLINE hazptr_holder< Atom > & | operator[] (uint8_t i) noexcept |
Private Attributes | |
aligned_hazptr_holder< Atom > | raw_ [M] |
Optimized for construction and destruction of one or more hazptr_holder-s with local scope.
WARNING 1: Do not move from or to individual hazptr_holder-s.
WARNING 2: There can only be one hazptr_local active for the same thread at any time. This is not tracked and checked by the implementation (except in debug mode) because it would negate the performance gains of this class.
Definition at line 167 of file Hazptr-fwd.h.
|
inline |
Constructor
Definition at line 342 of file HazptrHolder.h.
References count, h, folly::hazptr_holder< Atom >::hprec(), i, folly::kIsDebug, M, folly::hazptr_holder< Atom >::operator=(), tc, uint8_t, and UNLIKELY.
|
delete |
|
delete |
|
inline |
Destructor
Definition at line 376 of file HazptrHolder.h.
References h, i, folly::kIsDebug, M, tc, and uint8_t.
|
delete |
|
delete |
|
inlinenoexcept |
[] operator
Definition at line 395 of file HazptrHolder.h.
|
private |
Definition at line 336 of file HazptrHolder.h.