proxygen
|
Caches the current CPU and refreshes the cache every so often. More...
Public Member Functions | |
unsigned | cpu () |
Private Attributes | |
unsigned | cachedCpu_ {0} |
unsigned | cachedCpuUses_ {0} |
Static Private Attributes | |
static constexpr unsigned | kMaxCachedCpuUses = 32 |
Caches the current CPU and refreshes the cache every so often.
Definition at line 289 of file CacheLocality.h.
|
inline |
Definition at line 291 of file CacheLocality.h.
References folly::AccessSpreader< Atom >::getcpuFunc, and UNLIKELY.
|
private |
Definition at line 304 of file CacheLocality.h.
|
private |
Definition at line 305 of file CacheLocality.h.
|
staticprivate |
Definition at line 302 of file CacheLocality.h.