UAVCAN allocator as a dedicated type; reporting a warning if memory leak is deetcted upon destruction

This commit is contained in:
Pavel Kirienko
2015-10-17 03:24:59 +03:00
committed by Lorenz Meier
parent edfb19d9af
commit ca4e55fec3
3 changed files with 75 additions and 11 deletions

View File

@@ -77,7 +77,6 @@
UavcanNode *UavcanNode::_instance;
UavcanNode::UavcanNode(uavcan::ICanDriver &can_driver, uavcan::ISystemClock &system_clock) :
CDev("uavcan", UAVCAN_DEVICE_PATH),
_pool_allocator(MemoryPoolBlockCapacitySoftLimit, MemoryPoolBlockCapacityHardLimit),
_node(can_driver, system_clock, _pool_allocator),
_node_mutex(),
_esc_controller(_node),