Changeset 82facc5 for lib/trace.c


Ignore:
Timestamp:
06/04/14 02:28:58 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
b13b939
Parents:
fac8c46
Message:

Adds a thread keepalive that sends a messages to the perpkt threads every second(still todo make this configurable)
Updated tracertstats to use this rather than the temporary result system which has been removed
Also fixes a handful of compile warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rfac8c46 r82facc5  
    279279        libtrace_zero_thread(&libtrace->hasher_thread);
    280280        libtrace_zero_thread(&libtrace->reducer_thread);
     281        libtrace_zero_thread(&libtrace->keepalive_thread);
    281282        libtrace_zero_slidingwindow(&libtrace->sliding_window);
    282283        libtrace->reducer_thread.type = THREAD_EMPTY;
     
    399400        libtrace_zero_thread(&libtrace->hasher_thread);
    400401        libtrace_zero_thread(&libtrace->reducer_thread);
     402        libtrace_zero_thread(&libtrace->keepalive_thread);
    401403        libtrace_zero_slidingwindow(&libtrace->sliding_window);
    402404        libtrace->reducer_thread.type = THREAD_EMPTY;
     
    770772 * use trace_destroy_packet() for those diabolical purposes.
    771773 */
    772 void trace_fin_packet(libtrace_packet_t *packet);
    773774void trace_fin_packet(libtrace_packet_t *packet) {
    774775        if (packet)
Note: See TracChangeset for help on using the changeset viewer.