Megosztás a következőn keresztül:


sync_shared Class

Describes a synchronization filter that uses a mutex to control access to a cache object that is shared by all allocators.

template <class Cache> class sync_shared

Parameters

Parameter

Description

Cache

The type of cache associated with the synchronization filter. This can be cache_chunklist, cache_freelist, or cache_suballoc.

Member Functions

allocate

Allocates a block of memory.

deallocate

Frees a specified number of objects from storage beginning at a specified position.

equals

Compares two caches for equality.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

<allocators>