Scope guard that binds CoreAllocator allocations to a stripe.

Synopsis

Declared in <folly/concurrency/CacheLocality.h>

class [[nodiscard]] CoreAllocatorGuard;

Description

While a guard is alive, CoreAllocator::allocate() draws memory for the given stripe and numStripes.

Member Functions

Name

Description

CoreAllocatorGuard [constructor]

Constructors

~CoreAllocatorGuard [destructor]

Ends the guarded allocation scope.

operator=

Assignment operators

Return Value

Note

The return value should not be discarded.

Created with MrDocs