Epok Engine

EPOK RUNTIME

epok::instrument::allocation::reserve_free

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

The common native case needs no stealing or note-group bookkeeping.

Belongs to
epok::instrument::allocation
Header
instrument_allocator.hpp
Overloads
1

Declaration

Declaration
inline Plan reserve_free(uint32_t free_mask,unsigned own,unsigned music,const Request& request)

The common native case needs no stealing or note-group bookkeeping.

ParameterTypeMeaning
free_maskuint32_tNot documented; consult the linked header.
ownunsigned intNot documented; consult the linked header.
musicunsigned intNot documented; consult the linked header.
requestconst Request &Not documented; consult the linked header.

Returns: Plan. Consult the linked header for its meaning.

Example sketch

C++ example
#include "instrument_allocator.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t free_mask
// unsigned int own
// unsigned int music
// const Request & request

auto result = epok::instrument::allocation::reserve_free(free_mask, own, music, request);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/instrument_allocator.hpp:19

Related members