trq_set_hard_flag()
#
trq_set_hard_flag()
marks a message with a hard flag, allowing it to be recovered in the next queue open if the flag is used in trq_load()
.
Prototype
int trq_set_hard_flag(
q_msg msg,
uint32_t hard_mark,
BOOL set
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The message to be marked. |
|
|
The hard flag to set on the message. |
|
|
If |
Return Value
Returns 0
on success, or a negative value on failure.
Notes
A message must be flagged after being appended to the queue if it needs to be recovered in the next queue open using trq_load()
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples