[Threads] Ensure proper RTTI/vtable emission for PosixWaitHandle

This commit is contained in:
Herman S.
2025-10-13 19:48:11 +09:00
parent 174d2d4205
commit ae1706d1dc

View File

@@ -924,10 +924,13 @@ class PosixCondition<Thread> final : public PosixConditionBase {
class PosixWaitHandle {
public:
virtual ~PosixWaitHandle() = default;
virtual ~PosixWaitHandle();
virtual PosixConditionBase& condition() = 0;
};
// Out-of-line destructor to ensure proper RTTI/vtable emission
PosixWaitHandle::~PosixWaitHandle() = default;
// This wraps a condition object as our handle because posix has no single
// native handle for higher level concurrency constructs such as semaphores
template <typename T>