folly::LLCAccessSpreader

Similar to AccessSpreader, but it has exactly one stripe for each last-level cache that is accessible by the current process.

Synopsis

Declared in <folly/concurrency/CacheLocality.h>

class LLCAccessSpreader;

Description

Only supported on Linux; on other systems, numStripes() always returns 1 and current() always returns 0.

Member Functions

NameDescription
LLCAccessSpreader [constructor]Constructs the spreader, populating the per-cpu stripe table.
current Returns the last-level-cache stripe for the current CPU.
numStripes Returns the number of last-level-cache stripes.

Static Member Functions

NameDescription
get Returns the process-wide LLCAccessSpreader singleton.