template <typename T, typename Allocator>

class ObjectCache

Defined at line 211 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

Specialization of ObjectCache for the single slab cache variant. Operations

serialize on the main object cache lock, regardless of CPU.

Public Methods

template <typename... Args>
void ObjectCache<T, Option::Single, Allocator> (size_t reserve_slabs, Args &&... args)

Defined at line 229 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

void ~ObjectCache<T, Option::Single, Allocator> ()

Defined at line 235 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

void ObjectCache<T, Option::Single, Allocator> (const ObjectCache<T, Option::Single, Allocator> & )

ObjectCache is not copiable.

Defined at line 281 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

ObjectCache<T, Option::Single, Allocator> & operator= (const ObjectCache<T, Option::Single, Allocator> & )

Defined at line 282 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

void ObjectCache<T, Option::Single, Allocator> (ObjectCache<T, Option::Single, Allocator> && other)

ObjectCache is not movable.

Defined at line 285 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

ObjectCache<T, Option::Single, Allocator> & operator= (ObjectCache<T, Option::Single, Allocator> && other)

Defined at line 286 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

template <typename... Args>
zx::result<PtrType> Allocate (Args &&... args)

Defined at line 295 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

size_t slab_count ()

Defined at line 318 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

size_t objects_per_slab ()

Defined at line 323 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

size_t slab_control_size ()

Defined at line 324 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

size_t entry_size ()

Defined at line 325 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

Allocator & allocator ()

Defined at line 327 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

const Allocator & allocator ()

Defined at line 328 of file ../../zircon/kernel/lib/object_cache/include/lib/object_cache.h

Friends

template <typename, typename>
class Deletable
template <typenametypename>
class Deleter