Changeset 3296252 for lib/trace.c


Ignore:
Timestamp:
06/26/14 00:36:08 (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:
c99b1e5
Parents:
59ef093
Message:

Fixes pausing the trace in the edge case that some threads have already ended.
Tidy up the state system, for both threads and the the overall state.
General tidies to the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r9857d1c r3296252  
    264264        // libtrace->perpkt_cond;
    265265        libtrace->state = STATE_NEW;
    266         libtrace->perpkts_pausing = 0;
    267266        libtrace->perpkt_queue_full = false;
    268         libtrace->perpkts_finishing = -1;
    269267        libtrace->reducer_flags = 0;
    270268        libtrace->global_blob = NULL;
     
    385383        // libtrace->perpkt_cond;
    386384        libtrace->state = STATE_NEW; // TODO MAYBE DEAD
    387         libtrace->perpkts_pausing = 0;
    388385        libtrace->perpkt_queue_full = false;
    389         libtrace->perpkts_finishing = -1;
    390386        libtrace->reducer_flags = 0;
    391387        libtrace->global_blob = NULL;
Note: See TracChangeset for help on using the changeset viewer.