MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / allocateFrame

Method allocateFrame

Libraries/Await/Await.cpp:781–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779AwaitEventLoop* AwaitTask::Promise::findEventLoop(AwaitEventLoop& await) { return &await; }
780
781void* AwaitTask::Promise::allocateFrame(size_t size, AwaitEventLoop* eventLoop) noexcept
782{
783 constexpr size_t alignment = AwaitFrameAlignment;
784 if (eventLoop == nullptr)
785 {
786 return nullptr;
787 }
788 return eventLoop->allocator().allocate(nullptr, size, alignment);
789}
790
791void AwaitTask::Promise::deallocateFrame(void* frame) noexcept
792{

Callers

nothing calls this directly

Calls 2

allocatorMethod · 0.80
allocateMethod · 0.45

Tested by

no test coverage detected