Mac compilation fixes

reviewable/pr11758/r1
Craig Tiller 8 years ago
parent 9bebf8b22a
commit 7d079947b5
  1. 12
      src/core/lib/iomgr/executor.c

@ -151,9 +151,8 @@ static void executor_thread(void *arg) {
size_t subtract_depth = 0; size_t subtract_depth = 0;
for (;;) { for (;;) {
if (GRPC_TRACER_ON(executor_trace)) { if (GRPC_TRACER_ON(executor_trace)) {
gpr_log(GPR_DEBUG, gpr_log(GPR_DEBUG, "EXECUTOR[%d]: step (sub_depth=%" PRIdPTR ")",
"EXECUTOR[%" PRIdPTR "]: step (sub_depth=%" PRIdPTR ")", (int)(ts - g_thread_state), subtract_depth);
ts - g_thread_state, subtract_depth);
} }
gpr_mu_lock(&ts->mu); gpr_mu_lock(&ts->mu);
ts->depth -= subtract_depth; ts->depth -= subtract_depth;
@ -163,8 +162,8 @@ static void executor_thread(void *arg) {
} }
if (ts->shutdown) { if (ts->shutdown) {
if (GRPC_TRACER_ON(executor_trace)) { if (GRPC_TRACER_ON(executor_trace)) {
gpr_log(GPR_DEBUG, "EXECUTOR[%" PRIdPTR "]: shutdown", gpr_log(GPR_DEBUG, "EXECUTOR[%d]: shutdown",
ts - g_thread_state); (int)(ts - g_thread_state));
} }
gpr_mu_unlock(&ts->mu); gpr_mu_unlock(&ts->mu);
break; break;
@ -173,8 +172,7 @@ static void executor_thread(void *arg) {
ts->elems = (grpc_closure_list)GRPC_CLOSURE_LIST_INIT; ts->elems = (grpc_closure_list)GRPC_CLOSURE_LIST_INIT;
gpr_mu_unlock(&ts->mu); gpr_mu_unlock(&ts->mu);
if (GRPC_TRACER_ON(executor_trace)) { if (GRPC_TRACER_ON(executor_trace)) {
gpr_log(GPR_DEBUG, "EXECUTOR[%" PRIdPTR "]: execute", gpr_log(GPR_DEBUG, "EXECUTOR[%d]: execute", (int)(ts - g_thread_state));
ts - g_thread_state);
} }
subtract_depth = run_closures(&exec_ctx, exec); subtract_depth = run_closures(&exec_ctx, exec);

Loading…
Cancel
Save