SmartSnippets DA1459x SDK
Data Fields
content_allocator Struct Reference

Message queue content allocator. More...

#include <msg_queues.h>

Data Fields

MSG_ALLOC content_alloc
 
MSG_FREE content_free
 

Detailed Description

Message queue content allocator.

Content allocator consist of two functions that will allocate and release memory needed by messages in cases when data needs to be copied from sender to receiver. Allocator will be associated with msg_queue so user can initialize messages using correct allocation functions. Those functions will be used when user calls msg_queue_send() function.

If CONFIG_MSG_QUEUE_USE_ALLOCATORS is not defined queues will not have dedicated allocators. In this case MSG_QUEUE_MALLOC and MSG_QUEUE_FREE macros will be used to allocate and free memory.

See also
msg_queue_create
msg_queue_send

Field Documentation

◆ content_alloc

MSG_ALLOC content_allocator::content_alloc

Pointer to allocate memory function

◆ content_free

MSG_FREE content_allocator::content_free

Pointer to free memory function


The documentation for this struct was generated from the following file: