Changeset c723e9e


Ignore:
Timestamp:
03/30/15 13:42:53 (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:
d3849c7
Parents:
ac65c9f
Message:

Remove unused code get_thread_table_num()

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    rac65c9f rc723e9e  
    366366void store_first_packet(libtrace_t *libtrace, libtrace_packet_t *packet, libtrace_thread_t *t);
    367367libtrace_thread_t * get_thread_table(libtrace_t *libtrace);
    368 int get_thread_table_num(libtrace_t *libtrace);
    369368
    370369
  • lib/trace_parallel.c

    rac65c9f rc723e9e  
    297297        }
    298298        return NULL;
    299 }
    300 
    301 int get_thread_table_num(libtrace_t *libtrace) {
    302         int i = 0;
    303         pthread_t tid = pthread_self();
    304         for (;i<libtrace->perpkt_thread_count; ++i) {
    305                 if (pthread_equal(tid, libtrace->perpkt_threads[i].tid))
    306                         return i;
    307         }
    308         return -1;
    309299}
    310300
Note: See TracChangeset for help on using the changeset viewer.