Skip to content

Commit

Permalink
fixup: gettid is Linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Dec 17, 2024
1 parent c682e13 commit 76b432f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/event_engine/posix_engine/file_descriptors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ThreadLocalCounter {
}

private:
#ifdef GPR_HAS_PTHREAD_H
#ifdef __linux__
static bool IsThreadAlive() {
int tid = gettid();
grpc_core::MutexLock lock(&gone_threads_mu);
Expand Down

0 comments on commit 76b432f

Please sign in to comment.