forked from enlightenment/efl
EINA_HAVE_PTHREAD_SETNAME to EINA_HAVE_THREAD_SETNAME
This commit is contained in:
parent
3c09795607
commit
5c89d47bdc
|
@ -73,7 +73,7 @@
|
|||
#include "eina_vpath.h"
|
||||
#include "eina_internal.h"
|
||||
|
||||
#ifdef EINA_HAVE_PTHREAD_SETNAME
|
||||
#ifdef EINA_HAVE_THREAD_SETNAME
|
||||
# ifndef __linux__
|
||||
# include <pthread_np.h>
|
||||
# endif
|
||||
|
@ -555,7 +555,7 @@ _monitor(void *_data)
|
|||
_opcodes_register_all(session);
|
||||
|
||||
// set a name for this thread for system debugging
|
||||
#ifdef EINA_HAVE_PTHREAD_SETNAME
|
||||
#ifdef EINA_HAVE_THREAD_SETNAME
|
||||
eina_thread_name_set(eina_thread_self(), "Edbg-mon");
|
||||
#endif
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ _monitor(void *_data EINA_UNUSED)
|
|||
event.events = EPOLLIN;
|
||||
ret = epoll_ctl(epfd, EPOLL_CTL_ADD, event.data.fd, &event);
|
||||
if (ret) perror("epoll_ctl/add");
|
||||
# ifdef EINA_HAVE_PTHREAD_SETNAME
|
||||
# ifdef EINA_HAVE_THREAD_SETNAME
|
||||
eina_thread_name_set(eina_thread_self(), "Edbg-tim");
|
||||
# endif
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#endif
|
||||
# include <string.h>
|
||||
|
||||
#if defined(EINA_HAVE_PTHREAD_AFFINITY) || defined(EINA_HAVE_PTHREAD_SETNAME)
|
||||
#if defined(EINA_HAVE_PTHREAD_AFFINITY) || defined(EINA_HAVE_THREAD_SETNAME)
|
||||
# define cpu_set_t cpuset_t
|
||||
#endif
|
||||
|
||||
|
@ -115,7 +115,7 @@ eina_thread_join(Eina_Thread t)
|
|||
EAPI Eina_Bool
|
||||
eina_thread_name_set(Eina_Thread t, const char *name)
|
||||
{
|
||||
#ifdef EINA_HAVE_PTHREAD_SETNAME
|
||||
#ifdef EINA_HAVE_THREAD_SETNAME
|
||||
char buf[16];
|
||||
if (name)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#define EINA_THREAD_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS
|
||||
#define EINA_THREAD_CANCELED PTHREAD_CANCELED
|
||||
|
||||
#if defined(EINA_HAVE_PTHREAD_AFFINITY) || defined(EINA_HAVE_PTHREAD_SETNAME)
|
||||
#if defined(EINA_HAVE_PTHREAD_AFFINITY) || defined(EINA_HAVE_THREAD_SETNAME)
|
||||
# ifndef __linux__
|
||||
# include <pthread_np.h>
|
||||
# define cpu_set_t cpuset_t
|
||||
|
|
|
@ -304,7 +304,7 @@ else
|
|||
endif
|
||||
|
||||
if cc.has_header_symbol(pthread_np_header_file, pthread_setname_np_api, args : pthread_args)
|
||||
eina_config.set('EINA_HAVE_PTHREAD_SETNAME', '1')
|
||||
eina_config.set('EINA_HAVE_THREAD_SETNAME', '1')
|
||||
endif
|
||||
|
||||
if cc.has_header_symbol(pthread_np_header_file, 'pthread_attr_setaffinity_np', args : pthread_args)
|
||||
|
|
Loading…
Reference in New Issue