proxygen
|
#include <CacheLocality.h>
Static Public Member Functions | |
static int | getcpu (unsigned *cpu, unsigned *node, void *) |
A class that lazily binds a unique (for each implementation of Atom) identifier to a thread. This is a fallback mechanism for the access spreader if __vdso_getcpu can't be loaded
Definition at line 171 of file CacheLocality.h.
|
inlinestatic |
Fills the thread id into the cpu and node out params (if they are non-null). This method is intended to act like getcpu when a fast-enough form of getcpu isn't available or isn't desired
Definition at line 175 of file CacheLocality.h.
References folly::pushmi::operators::get.
Referenced by folly::AccessSpreader< Atom >::pickGetcpuFunc(), and TEST().