Skip to main content

ec_message_should_reduce_resources

Last updated March 2020

Name

ec_message_should_reduce_resources — Determines whether or not a message should be removed from memory

Synopsis

#include "ec_message.h"

| int **ec_message_should_reduce_resources** ( | message); |   |

ec_message * <var class="pdparam">message</var>;

Description

Determines whether a message should be removed from memory, based on the value of max_resident_messages.

Parameters

message

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”

Return Values

This function returns a boolean value (0 or 1) indicating whether a message should be forced out of memory depending on whether the max_resident_messages count has been exceeded for the binding (or global value of max_resident_messages).

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?