Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::tasks::CoroutineFramePool Class Reference

The scheduler must outlive every frame allocated from its pool. More...

#include "donner/base/tasks/CoroutineFramePool.h"

Public Member Functions

 CoroutineFramePool (std::size_t maxRetainedBytes)
 CoroutineFramePool (const CoroutineFramePool &)=delete
CoroutineFramePool & operator= (const CoroutineFramePool &)=delete
void * allocate (std::size_t frameBytes)
void trackFrame () noexcept
void untrackFrame () noexcept
void assertNoLiveFrames ()

Static Public Member Functions

static void Release (void *frame, std::size_t frameBytes) noexcept

Friends

class TaskSchedulerTestPeer

Detailed Description

The scheduler must outlive every frame allocated from its pool.

Constructor & Destructor Documentation

◆ CoroutineFramePool()

donner::tasks::CoroutineFramePool::CoroutineFramePool ( std::size_t maxRetainedBytes)
inlineexplicit
Parameters
maxRetainedBytesMaximum requested heap bytes held free, including trailers and padding, before allocator overhead.

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