20#ifndef __PBeFS_ads_NodePool
21 #define __PBeFS_ads_NodePool
30#include "ADS/memory/Arena.h"
47template<
class NodeT >
48class NodePool :
public ADS::Arena< NodeT , ADS::HugePageAllocator< NodeT > > {
54 explicit NodePool( std::size_t chunk = std::size_t( 1 ) << 16 )
55 : ADS::Arena< NodeT , ADS::HugePageAllocator< NodeT > >( chunk ) {}
59 [[nodiscard]] NodeT *
allocate(
void ) {
return( this->make() ); }
Header file for the small helpers shared by the searches: a stopwatch, the placement of the workers o...
NodePool(std::size_t chunk=std::size_t(1)<< 16)
constructor, taking the number of nodes of a chunk
Definition NodePool.h:54
NodeT * allocate(void)
returns a new (value-initialized) node, whose address never changes
Definition NodePool.h:59
namespace for the Parallel Best-First Search library
Definition AStar.h:83