|
Apollo
6.0
Open source self driving car software
|
The memory pool for the data structure of BaseMapNode. More...
#include <ndt_map_pool.h>


Public Member Functions | |
| NdtMapNodePool (unsigned int pool_size, unsigned int thread_size) | |
| Constructor. More... | |
| virtual | ~NdtMapNodePool () |
| Destructor. More... | |
Public Member Functions inherited from apollo::localization::msf::BaseMapNodePool | |
| BaseMapNodePool (unsigned int pool_size, unsigned int thread_size) | |
| Constructor. More... | |
| virtual | ~BaseMapNodePool () |
| Destructor. More... | |
| void | Initial (const BaseMapConfig *map_config, bool is_fixed_size=true) |
| Initialize the pool. More... | |
| void | Release () |
| Release the pool. More... | |
| BaseMapNode * | AllocMapNode () |
| Get a MapNode object from memory pool. More... | |
| void | FreeMapNode (BaseMapNode *map_node) |
| Release MapNode object to memory pool. More... | |
| unsigned int | GetPoolSize () |
| Get the size of pool. More... | |
Additional Inherited Members | |
Protected Attributes inherited from apollo::localization::msf::BaseMapNodePool | |
| bool | is_fixed_size_ |
| The flag of pool auto expand. More... | |
| std::list< BaseMapNode * > | free_list_ |
| The list for free node. More... | |
| std::set< BaseMapNode * > | busy_nodes_ |
| The set for used node. More... | |
| unsigned int | pool_size_ |
| The size of memory pool. More... | |
| std::future< void > | node_reset_workers_ |
| The thread pool for release node. More... | |
| boost::mutex | mutex_ |
| The mutex for release thread. More... | |
| const BaseMapConfig * | map_config_ |
| The mutex for release thread. More... | |
The memory pool for the data structure of BaseMapNode.
| apollo::localization::msf::NdtMapNodePool::NdtMapNodePool | ( | unsigned int | pool_size, |
| unsigned int | thread_size | ||
| ) |
Constructor.
| <pool_size> | The memory pool size. |
| <thread_size> | The thread pool size. |
|
inlinevirtual |
Destructor.
1.8.13