Changeset 5e43b8b for lib


Ignore:
Timestamp:
03/25/15 17:02:33 (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:
16cb2a2
Parents:
f01c479
Message:

Add check for existance of pthread_setname_np()

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r773d5e2 r5e43b8b  
    15581558#if DEBUG
    15591559        char name[99];
     1560        name[0] = 0;
     1561#if HAVE_PTHREAD_SETNAME_NP
    15601562        pthread_getname_np(pthread_self(),
    15611563                           name, sizeof(name));
     1564#endif
    15621565#endif
    15631566        if (reading) {
  • lib/trace_parallel.c

    ra330384 r5e43b8b  
    120120#if 0
    121121        uint64_t total;
    122 #ifdef __linux__
     122#ifdef HAVE_PTHREAD_SETNAME_NP
    123123        char t_name[50];
    124124        pthread_getname_np(pthread_self(), t_name, sizeof(t_name));
     
    14631463                                                 LIBTRACE_RINGBUFFER_BLOCKING);
    14641464        }
    1465 #ifdef __linux__
     1465#if HAVE_PTHREAD_SETNAME_NP
    14661466        if(name)
    14671467                pthread_setname_np(t->tid, name);
Note: See TracChangeset for help on using the changeset viewer.