[Documentation] [TitleIndex] [WordIndex

  Show EOL distros: 

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

ros_realtime: allocators | lockfree | rosatomic | rosrt

Package Summary

Contains aligned allocation functions, as well as an STL-compatible AlignedAllocator class.

The allocators package is meant as a place to put different kinds of C/C++ memory allocators. It currently only contains functions for aligned allocation, and an STL-compatible aligned allocator.

Aligned Allocation

General aligned allocation is done through the alignedMalloc() and alignedFree() functions. For example:

   1 #include <allocators/aligned.h>
   2 
   3 ...
   4 
   5 // Allocate 1000 bytes aligned to 128 bytes
   6 void* mem = allocators::alignedMalloc(1000, 128);
   7 ...
   8 // You must free using alignedFree
   9 allocators::alignedFree(mem);

There is also an stl-compatible aligned allocator:

   1 // All allocations done by the vector will be aligned to 128 bytes
   2 std::vector<int, allocators::AlignedAllocator<int, 128> > vec;


2022-05-28 12:26