Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

immer::thread_local_free_list_heap< Size, Limit, Base > Struct Template Reference

#include <thread_local_free_list_heap.hpp>

+ Inheritance diagram for immer::thread_local_free_list_heap< Size, Limit, Base >:
+ Collaboration diagram for immer::thread_local_free_list_heap< Size, Limit, Base >:

Additional Inherited Members

- Public Types inherited from immer::detail::unsafe_free_list_heap_impl< detail::thread_local_free_list_storage, Size, Limit, Base >
using base_t = Base
 
- Static Public Member Functions inherited from immer::detail::unsafe_free_list_heap_impl< detail::thread_local_free_list_storage, Size, Limit, Base >
static void * allocate (std::size_t size, Tags...)
 
static void deallocate (std::size_t size, void *data, Tags...)
 
static void clear ()
 

Detailed Description

template<std::size_t Size, std::size_t Limit, typename Base>
struct immer::thread_local_free_list_heap< Size, Limit, Base >

Adaptor that does not release the memory to the parent heap but instead it keeps the memory in a thread_local global free list. Must be preceded by a with_data<free_list_node, ...> heap adaptor. When the current thread finishes, the memory is returned to the parent heap.

Template Parameters
SizeMaximum size of the objects to be allocated.
LimitMaximum number of elements to keep in the free list.
BaseType of the parent heap.

Definition at line 48 of file thread_local_free_list_heap.hpp.


The documentation for this struct was generated from the following file:
Released under the MIT license