proxygen
|
#include <CacheLocality.h>
Public Types | |
typedef int(* | Func) (unsigned *cpu, unsigned *node, void *unused) |
Function pointer to a function with the same signature as getcpu(2). More... | |
Static Public Member Functions | |
static Func | resolveVdsoFunc () |
Knows how to derive a function pointer to the VDSO implementation of getcpu(2), if available
Definition at line 122 of file CacheLocality.h.
typedef int(* folly::Getcpu::Func) (unsigned *cpu, unsigned *node, void *unused) |
Function pointer to a function with the same signature as getcpu(2).
Definition at line 124 of file CacheLocality.h.
|
static |
Returns a pointer to the VDSO implementation of getcpu(2), if available, or nullptr otherwise. This function may be quite expensive, be sure to cache the result.
Definition at line 208 of file CacheLocality.cpp.
References h.
Referenced by folly::AccessSpreader< Atom >::pickGetcpuFunc(), and TEST().