BloombergLP::bsls::PerformanceHint::prefetchForWriting

Prefetch one cache line of data at address for writing.

Synopsis

Declared in <bsls_performancehint.h>

static
void
prefetchForWriting(void* address);

Description

Prefetch one cache line worth of data at the specified address for writing if the compiler built-in is available (see to the component level document for limitations). Otherwise this method has no effect.

Parameters

NameDescription
addressmemory address to prefetch