Ignore:
Timestamp:
02/28/18 15:08:44 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
e375e0f
Parents:
9375d2e
Message:

Add trace_get_perpkt_thread_id() API function.

Allows callers to access their specific thread ID inside a
process_packet callback. Handy for printing debug messages, as
well as indexing arrays of per-thread storage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    re8db2d4 r5c07bfe  
    287287}
    288288
     289DLLEXPORT int trace_get_perpkt_thread_id(libtrace_thread_t *thread) {
     290        return thread->perpkt_num;
     291}
     292
    289293/**
    290294 * Changes the overall traces state and signals the condition.
Note: See TracChangeset for help on using the changeset viewer.