Changeset aa5a642


Ignore:
Timestamp:
06/25/14 00:00:47 (6 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:
18961094, a360b61
Parents:
9857d1c
Message:

In the singled threaded case don't start the hasher thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r9857d1c raa5a642  
    11741174
    11751175        // If we are using a hasher start it
    1176         if (libtrace->hasher || libtrace->hasher_thread.type == THREAD_HASHER) {
     1176        // If single threaded we don't need a hasher
     1177        if (libtrace->perpkt_thread_count > 1 && (libtrace->hasher || libtrace->hasher_thread.type == THREAD_HASHER)) {
    11771178                libtrace_thread_t *t = &libtrace->hasher_thread;
    11781179                t->trace = libtrace;
Note: See TracChangeset for help on using the changeset viewer.