diff options
author | kpayson64 <kpayson@google.com> | 2017-11-07 13:32:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 13:32:41 -0800 |
commit | c03867ff224a98dab5a93b3ba70b95c46f05a440 (patch) | |
tree | e5ec75cf6c7b1b36159eb2fc73ecf216207e91bb /include/grpc++ | |
parent | 4c8f8fe1f1522f2f86e3648358e05fdac72888bb (diff) | |
parent | e1533572d517df2e660cf57556d296b59ab89cfc (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.h | 5 |
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; |