YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::fiber::DefaultAllocator Class Referencefinal

Allocator used by default. More...

#include <default_allocator.hpp>

Inheritance diagram for yaclib::detail::fiber::DefaultAllocator:
[legend]
Collaboration diagram for yaclib::detail::fiber::DefaultAllocator:
[legend]

Public Member Functions

Allocation Allocate () final
 
void Release (Allocation allocation) final
 
void SetMinStackSize (std::size_t pages) noexcept final
 
std::size_t GetMinStackSize () noexcept final
 
- Public Member Functions inherited from yaclib::detail::fiber::IStackAllocator
virtual ~IStackAllocator ()=default
 

Static Public Member Functions

static void SetCacheSize (std::uint32_t size) noexcept
 

Detailed Description

Allocator used by default.

Definition at line 14 of file default_allocator.hpp.

Member Function Documentation

◆ Allocate()

Allocation yaclib::detail::fiber::DefaultAllocator::Allocate ( )
finalvirtual

◆ GetMinStackSize()

std::size_t yaclib::detail::fiber::DefaultAllocator::GetMinStackSize ( )
finalvirtualnoexcept

Implements yaclib::detail::fiber::IStackAllocator.

Definition at line 55 of file default_allocator.cpp.

◆ Release()

void yaclib::detail::fiber::DefaultAllocator::Release ( Allocation  allocation)
finalvirtual

◆ SetCacheSize()

void yaclib::detail::fiber::DefaultAllocator::SetCacheSize ( std::uint32_t  size)
staticnoexcept

Definition at line 59 of file default_allocator.cpp.

References yaclib::MakeContract().

Referenced by yaclib::fiber::SetStackCacheSize().

◆ SetMinStackSize()

void yaclib::detail::fiber::DefaultAllocator::SetMinStackSize ( std::size_t  pages)
finalvirtualnoexcept

Implements yaclib::detail::fiber::IStackAllocator.

Definition at line 45 of file default_allocator.cpp.

References yaclib::MakeContract().


The documentation for this class was generated from the following files: