Merge branch 'patch-1' into kwasi-format

pull/13173/head
kwasimensah 7 years ago committed by GitHub
commit 3c9040bd39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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<unsigned int> thread_counter(0);
unsigned int* thread_id =
static_cast<unsigned int*>(pthread_getspecific(thread_id_key));
if (thread_id == nullptr) {

Loading…
Cancel
Save