Compare two slogger2 packets
#include <slog2_parse.h>
int slog2_packet_cmp ( slog2_packet_info_t *packet1,
slog2_packet_info_t *packet2 );
The slog2_packet_cmp() function compares two slogger2 packets to determine which came first. This comparison is based first on the timestamps of the packets; if the timestamps are identical, the function then compares the packets' sequence numbers.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |