Improve multithreading support for OneService (faster, dynamic adjustment of thread count based on HW concurrency).
This commit is contained in:
parent
f6450cd7e1
commit
90631adb9b
3 changed files with 87 additions and 71 deletions
2
one.cpp
2
one.cpp
|
@ -1354,12 +1354,14 @@ int main(int argc,char **argv)
|
|||
#ifdef __UNIX_LIKE__
|
||||
signal(SIGHUP,&_sighandlerHup);
|
||||
signal(SIGPIPE,SIG_IGN);
|
||||
signal(SIGIO,SIG_IGN);
|
||||
signal(SIGUSR1,SIG_IGN);
|
||||
signal(SIGUSR2,SIG_IGN);
|
||||
signal(SIGALRM,SIG_IGN);
|
||||
signal(SIGINT,&_sighandlerQuit);
|
||||
signal(SIGTERM,&_sighandlerQuit);
|
||||
signal(SIGQUIT,&_sighandlerQuit);
|
||||
signal(SIGINT,&_sighandlerQuit);
|
||||
|
||||
/* Ensure that there are no inherited file descriptors open from a previous
|
||||
* incarnation. This is a hack to ensure that GitHub issue #61 or variants
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue