ec_message_addref
Last updated March 2020
Name
ec_message_addref — Create a reference to an existing message
Synopsis
#include "ec_message.h"
| ec_message * **ec_message_addref** (
| sm)
; | |
Description
Create a reference to an existing message.
Intended to be used when performing async processing where part of the processing would otherwise free the message while it is still in use.
- sm
-
A pointer to an ec_message struct (the source message). For documentation of this data structure see “ec_message”
An ec_message pointer (the source message). You are responsible for releasing the reference via ec_message_free when you no longer need it.
It is legal to call this function in any thread.
See Also
Was this page helpful?