Beispiel #1
0
/*
 * CanTxQueue::Entry
 */
void CanTxQueue::Entry::destroy(Entry*& obj, IPoolAllocator& allocator)
{
    if (obj != NULL)
    {
        obj->~Entry();
        allocator.deallocate(obj);
        obj = NULL;
    }
}
Beispiel #2
0
 static void destroy(Chunk*& obj, IPoolAllocator& allocator)
 {
     if (obj != NULL)
     {
         obj->~Chunk();
         allocator.deallocate(obj);
         obj = NULL;
     }
 }
void TransferBufferManagerEntry::Block::destroy(Block*& obj, IPoolAllocator& allocator)
{
    if (obj != UAVCAN_NULLPTR)
    {
        obj->~Block();
        allocator.deallocate(obj);
        obj = UAVCAN_NULLPTR;
    }
}
Beispiel #4
0
 static void destroy(KVGroup*& obj, IPoolAllocator& allocator)
 {
     if (obj != NULL)
     {
         obj->~KVGroup();
         allocator.deallocate(obj);
         obj = NULL;
     }
 }
void DynamicTransferBufferManagerEntry::destroy(DynamicTransferBufferManagerEntry*& obj, IPoolAllocator& allocator)
{
    if (obj != NULL)
    {
        obj->~DynamicTransferBufferManagerEntry();
        allocator.deallocate(obj);
        obj = NULL;
    }
}