boost::capy::execution_context::set_frame_allocator

Set the memory resource used for coroutine frame allocation.

Synopsis

void
set_frame_allocator(std::pmr::memory_resource* mr) noexcept;

Description

The caller is responsible for ensuring the memory resource remains valid for the lifetime of all coroutines launched using this context's executor.

Thread Safety

Not thread‐safe. Must not be called while any thread may be referencing this execution context or its executor.

Parameters

Name Description

mr

Pointer to the memory resource.

See Also

get_frame_allocator

Created with MrDocs