Skip to content
Snippets Groups Projects
Commit a95bacf7 authored by Craig Tiller's avatar Craig Tiller
Browse files

clang-format, revert parameter

parent e45a277b
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,10 @@ class ServerBuilder { ...@@ -195,7 +195,10 @@ class ServerBuilder {
struct SyncServerSettings { struct SyncServerSettings {
SyncServerSettings() SyncServerSettings()
: num_cqs(GPR_MAX(1,gpr_cpu_num_cores())), 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. // Number of server completion queues to create to listen to incoming RPCs.
int num_cqs; int num_cqs;
......
...@@ -402,7 +402,7 @@ static void pollset_destroy(grpc_pollset *pollset) { ...@@ -402,7 +402,7 @@ static void pollset_destroy(grpc_pollset *pollset) {
if (!pollset->seen_inactive) { if (!pollset->seen_inactive) {
pollset_neighbourhood *neighbourhood = pollset->neighbourhood; pollset_neighbourhood *neighbourhood = pollset->neighbourhood;
gpr_mu_unlock(&pollset->mu); gpr_mu_unlock(&pollset->mu);
retry_lock_neighbourhood: retry_lock_neighbourhood:
gpr_mu_lock(&neighbourhood->mu); gpr_mu_lock(&neighbourhood->mu);
gpr_mu_lock(&pollset->mu); gpr_mu_lock(&pollset->mu);
if (!pollset->seen_inactive) { if (!pollset->seen_inactive) {
...@@ -462,7 +462,7 @@ static void pollset_shutdown(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset, ...@@ -462,7 +462,7 @@ static void pollset_shutdown(grpc_exec_ctx *exec_ctx, grpc_pollset *pollset,
pollset_maybe_finish_shutdown(exec_ctx, pollset); pollset_maybe_finish_shutdown(exec_ctx, pollset);
} }
#define MAX_EPOLL_EVENTS 10 #define MAX_EPOLL_EVENTS 100
static int poll_deadline_to_millis_timeout(gpr_timespec deadline, static int poll_deadline_to_millis_timeout(gpr_timespec deadline,
gpr_timespec now) { gpr_timespec now) {
...@@ -652,7 +652,8 @@ static bool check_neighbourhood_for_available_poller( ...@@ -652,7 +652,8 @@ static bool check_neighbourhood_for_available_poller(
if (!found_worker) { if (!found_worker) {
inspect->seen_inactive = true; inspect->seen_inactive = true;
if (inspect == neighbourhood->active_root) { if (inspect == neighbourhood->active_root) {
neighbourhood->active_root = inspect->next == inspect ? NULL : inspect->next; neighbourhood->active_root =
inspect->next == inspect ? NULL : inspect->next;
} }
inspect->next->prev = inspect->prev; inspect->next->prev = inspect->prev;
inspect->prev->next = inspect->next; inspect->prev->next = inspect->next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment