We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教下为什么线程池仅设置线程个数为1或者2?难道不应该是cpu核数吗? ThreadPool::ThreadPool() : _active_wait(10000) { _thread_num = get_cpu_num() > 1 ? 2 : 1; }
ThreadPool::ThreadPool() : _active_wait(10000) { _thread_num = get_cpu_num() > 1 ? 2 : 1; }
The text was updated successfully, but these errors were encountered:
因为目前主要是arm端优化,所以这块默认固定2线程以下,后续我们会进行完善。
Sorry, something went wrong.
No branches or pull requests
请教下为什么线程池仅设置线程个数为1或者2?难道不应该是cpu核数吗?
ThreadPool::ThreadPool() : _active_wait(10000) { _thread_num = get_cpu_num() > 1 ? 2 : 1; }
The text was updated successfully, but these errors were encountered: