aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2017-11-07 13:32:41 -0800
committerGravatar GitHub <noreply@github.com>2017-11-07 13:32:41 -0800
commitc03867ff224a98dab5a93b3ba70b95c46f05a440 (patch)
treee5ec75cf6c7b1b36159eb2fc73ecf216207e91bb /include/grpc++
parent4c8f8fe1f1522f2f86e3648358e05fdac72888bb (diff)
parente1533572d517df2e660cf57556d296b59ab89cfc (diff)
Merge pull request #12648 from kpayson64/attempt_2
Add back mpscq request matcher implementation
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/server_builder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h
index 0888bef0d9..bf842baf6f 100644
--- a/include/grpc++/server_builder.h
+++ b/include/grpc++/server_builder.h
@@ -202,7 +202,10 @@ class ServerBuilder {
struct SyncServerSettings {
SyncServerSettings()
- : num_cqs(1), min_pollers(1), max_pollers(2), cq_timeout_msec(10000) {}
+ : num_cqs(GPR_MAX(1, gpr_cpu_num_cores())),
+ min_pollers(1),
+ max_pollers(2),
+ cq_timeout_msec(10000) {}
/// Number of server completion queues to create to listen to incoming RPCs.
int num_cqs;