Knows how to derive a function pointer to the VDSO implementation of getcpu(2), if available

Synopsis

Declared in <folly/concurrency/CacheLocality.h>

struct Getcpu;

Type Aliases

Name

Description

Func

Function pointer to a function with the same signature as getcpu(2).

Static Member Functions

Name

Description

resolveVdsoFunc

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.

Created with MrDocs