GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Classes | Namespaces | Functions | Variables
fastflow_allocator.h File Reference
#include <ff/allocator.hpp>
Include dependency graph for fastflow_allocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  grppi::detail_ff::ff_arena_t
 Tag type for fastflow allocation. This empty type is used to select the overloaded placement new and delete operators that invoke the fastflow allocation routines. More...
 

Namespaces

 grppi
 
 grppi::detail_ff
 

Functions

void * operator new (std::size_t sz, const grppi::detail_ff::ff_arena_t &) noexcept
 Placement new for the FastFlow arena. Invokes ff_malloc(). Use by calling new (ff_arena) your_type;. More...
 
void operator delete (void *ptr, const grppi::detail_ff::ff_arena_t &) noexcept
 Placement delete for the FastFlow arena. Invokes ff_free(). Use by calling operator delete(ptr,ff_arena);. More...
 

Variables

constexpr ff_arena_t grppi::detail_ff::ff_arena
 Fastflow arena object. This object will be passed to placement new/delete to use FastFlow allocation strategy. More...
 

Function Documentation

void operator delete ( void *  ptr,
const grppi::detail_ff::ff_arena_t  
)
inlinenoexcept

Placement delete for the FastFlow arena. Invokes ff_free(). Use by calling operator delete(ptr,ff_arena);.

void* operator new ( std::size_t  sz,
const grppi::detail_ff::ff_arena_t  
)
inlinenoexcept

Placement new for the FastFlow arena. Invokes ff_malloc(). Use by calling new (ff_arena) your_type;.