21#include <boost/thread.hpp>
29namespace localization {
31namespace pyramid_map {
The options of the reflectance map.
The memory pool for the data structure of BaseMapNode.
virtual ~BaseMapNodePool()
Destructor
bool is_fixed_size_
The flag of pool auto expand.
const BaseMapConfig * map_config_
The mutex for release thread.
BaseMapNode * AllocMapNode()
Get a MapNode object from memory pool.
void Release()
Release the pool.
std::set< BaseMapNode * > busy_nodes_
The set for used node.
boost::mutex mutex_
The mutex for release thread.
std::list< BaseMapNode * > free_list_
The list for free node.
unsigned int GetPoolSize()
Get the size of pool.
std::future< void > node_reset_workers_
The thread pool for release node.
void FreeMapNode(BaseMapNode *map_node)
Release MapNode object to memory pool.
void Initial(const BaseMapConfig *map_config, bool is_fixed_size=true)
Initialize the pool.
unsigned int pool_size_
The size of memory pool.
The data structure of a Node in the map.