mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Join Win32Threads on destruct, like std::jthread
This commit is contained in:
@@ -42,7 +42,7 @@ Win32Thread& Win32Thread::operator=(Win32Thread&& o) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Win32Thread::wait() {
|
||||
Win32Thread::~Win32Thread() {
|
||||
if (handle) {
|
||||
WaitForSingleObject(handle.get(), INFINITE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user