Skip to main content

Name

msc_thread_id — Generate a thread_id according the following format: [msg_id in spool name format]::[node name]:[suffix]

Synopsis

#include "modules/logging/ec_msc_logger.h"

| void **msc_thread_id** ( | mid, |   | |   | suffix, |   | |   | thread_id, |   | |   | thread_id_len); |   |

message_id <var class="pdparam">mid</var>; const char * <var class="pdparam">suffix</var>; char * <var class="pdparam">thread_id</var>; int <var class="pdparam">thread_id_len</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Generate a thread_id according the following format: [msg_id in spool name format]::[node name]:[suffix].

[node name] will get its value from cluster configuration if available. In a none-cluster setting, it will use ENV("EC_NODE_NAME") if available otherwise use "default".

Parameters

mid
  • message id
suffix
  • the suffix to be appended to thread_id.
thread_id
  • char buffer to hold the generated thread_id.
thread_id_len
  • the buffer size of thread_id.

**Configuration Change. ** This feature is available as of version 3.2.

Was this page helpful?