Truxton message get priority
Jump to navigation
Jump to search
Tells you the priority of this message. The greater the value, the higher the priority. Priority 100 messages will be received by ETL processes before priority 1.
Syntax
int32_t truxton_message_get_priority( uint64_t message_handle );
Parameters
message_handle
The handle to a message created by the truxton_message_create call.
Return value
The priority of the message.
Sample
void dump_priority( uint64_t message )
{
int32_t priority = truxton_message_get_priority( message );
if ( priority < 100000 )
{
printf( "Low priority.\n" );
}
else
{
printf( "Normal priority.\n" );
}
}