mirror of https://github.com/F-Stack/f-stack.git
replace __linux__ with HAVE_FF_KQUEUE
Only f-stack redis server need bind cpu, and forked process will inherit it.
This commit is contained in:
parent
1404f8b66c
commit
da6f05a68c
|
@ -2565,7 +2565,7 @@ void resetCpuAffinity(const char* name)
|
|||
int j = 0, s = 0;
|
||||
cput_set_t cpuset_frm, cpuset_to;
|
||||
pthread_t thread;
|
||||
#ifdef __linux__
|
||||
#ifdef HAVE_FF_KQUEUE
|
||||
thread = pthread_self();
|
||||
CPU_ZERO(&cpuset_frm);
|
||||
CPU_ZERO(&cpuset_to);
|
||||
|
|
Loading…
Reference in New Issue