| << Prev | appCORE Programming Guide | Next >> |
NAME
coreMsgFree() -- free message resources.
SYNOPSIS
include "appcore.h" int coreMsgFree( coreMsg_t* m )
DESCRIPTION
The coreMsgFree() function returns the message's resources back to the system. If the message pool feature is enabled, the message is returned to the appropriate free list in the pool. If the message feature is disabled, the message memory is returned to the heap.
PARAMETERS
m Pointer to message.
RETURN VALUE
If successful, coreMsgFree() returns 0. If an error occurs, -1 is returned and errno is set to one of the following values.
| errno Value | Condition |
| EINVAL | Message is null. |
MULTI-THREAD SAFETY LEVEL
MT-safe.
SEE ALSO
| << Prev | appCORE Programming Guide | Next >> |