diff --git a/src/core/lib/support/cpu_posix.cc b/src/core/lib/support/cpu_posix.cc index a9284d80473..0d57d46131d 100644 --- a/src/core/lib/support/cpu_posix.cc +++ b/src/core/lib/support/cpu_posix.cc @@ -66,7 +66,7 @@ unsigned gpr_cpu_current_cpu(void) { // pthread_t isn't portably defined to map to an integral type. So keep track // of thread identity explicitly so hashing works reliably. static std::atomic thread_counter(0); - + unsigned int* thread_id = static_cast(pthread_getspecific(thread_id_key)); if (thread_id == nullptr) {