set thread name OK

iovec_array
YuQing 2021-04-28 07:54:57 +08:00
parent 082da383ff
commit 63d57f82c6
3 changed files with 4 additions and 10 deletions

View File

@ -59,6 +59,10 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind);
#include "_os_define.h"
#ifdef OS_LINUX
#include <sys/prctl.h>
#endif
#ifdef OS_LINUX
#ifndef PTHREAD_MUTEX_ERRORCHECK
#define PTHREAD_MUTEX_ERRORCHECK PTHREAD_MUTEX_ERRORCHECK_NP

View File

@ -17,11 +17,6 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#ifdef OS_LINUX
#include <sys/prctl.h>
#endif
#include "shared_func.h"
#include "pthread_func.h"
#include "logger.h"

View File

@ -18,11 +18,6 @@
#include <pthread.h>
#include <unistd.h>
#include <string.h>
#ifdef OS_LINUX
#include <sys/prctl.h>
#endif
#include "sched_thread.h"
#include "fc_memory.h"
#include "thread_pool.h"