|
proxygen
|
Public Member Functions | |
| IntCache (ThreadCachedInt &parent) | |
| void | increment (IntT inc) |
| void | flush () const |
| ~IntCache () | |
Public Attributes | |
| ThreadCachedInt * | parent_ |
| std::atomic< IntT > | val_ |
| uint32_t | numUpdates_ |
| std::atomic< bool > | reset_ |
Definition at line 142 of file ThreadCachedInt.h.
|
inlineexplicit |
Definition at line 148 of file ThreadCachedInt.h.
|
inline |
Definition at line 176 of file ThreadCachedInt.h.
References folly::ThreadCachedInt< IntT, Tag >::IntCache::flush().
|
inline |
Definition at line 170 of file ThreadCachedInt.h.
References folly::ThreadCachedInt< IntT, Tag >::target_.
Referenced by folly::ThreadCachedInt< IntT, Tag >::IntCache::increment(), and folly::ThreadCachedInt< IntT, Tag >::IntCache::~IntCache().
|
inline |
Definition at line 151 of file ThreadCachedInt.h.
References folly::ThreadCachedInt< IntT, Tag >::cacheSize_, folly::ThreadCachedInt< IntT, Tag >::IntCache::flush(), LIKELY, folly::ThreadCachedInt< IntT, Tag >::IntCache::numUpdates_, and UNLIKELY.
|
mutable |
Definition at line 145 of file ThreadCachedInt.h.
Referenced by folly::ThreadCachedInt< IntT, Tag >::IntCache::increment().
| ThreadCachedInt* folly::ThreadCachedInt< IntT, Tag >::IntCache::parent_ |
Definition at line 143 of file ThreadCachedInt.h.
| std::atomic<bool> folly::ThreadCachedInt< IntT, Tag >::IntCache::reset_ |
Definition at line 146 of file ThreadCachedInt.h.
|
mutable |
Definition at line 144 of file ThreadCachedInt.h.