[compiler] Misc changes to make this emulator properly compile under Linux with Clang

This commit is contained in:
Marco Rodolfi
2025-01-19 19:13:57 +01:00
committed by Radosław Gliński
parent 0dc0f18abb
commit f58fab1d2c
8 changed files with 38 additions and 26 deletions

View File

@@ -533,6 +533,10 @@ class PosixCondition<Thread> : public PosixConditionBase {
}
virtual ~PosixCondition() {
// FIXME(RodoMa92): This causes random crashes.
// The proper way to handle them according to the webs is properly shutdown
// instead on relying on killing them using pthread_cancel.
/*
if (thread_ && !signaled_) {
#if XE_PLATFORM_ANDROID
if (pthread_kill(thread_,
@@ -548,6 +552,7 @@ class PosixCondition<Thread> : public PosixConditionBase {
assert_always();
}
}
*/
}
bool Signal() override { return true; }