Changeset 915b93c


Ignore:
Timestamp:
03/27/15 16:19:55 (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:
c63bcdf
Parents:
14c6c08
Message:

Some libraries define pthread_set/get_name_np with different arguments.
Because this option is on for debug we'll only attempt to
do this on Linux.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r5e43b8b r915b93c  
    15591559        char name[99];
    15601560        name[0] = 0;
    1561 #if HAVE_PTHREAD_SETNAME_NP
     1561#if defined(HAVE_PTHREAD_SETNAME_NP) && defined(__linux__)
    15621562        pthread_getname_np(pthread_self(),
    15631563                           name, sizeof(name));
  • lib/trace_parallel.c

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