mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Add an explicit wait to our thread wrapper
This commit is contained in:
@@ -42,6 +42,12 @@ Win32Thread& Win32Thread::operator=(Win32Thread&& o) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
void Win32Thread::wait() {
|
||||
if (handle) {
|
||||
WaitForSingleObject(handle.get(), INFINITE);
|
||||
}
|
||||
}
|
||||
|
||||
Win32Thread::Win32Thread() : handle(nullptr, nullptr) {}
|
||||
|
||||
Win32Timer::Win32Timer(HWND window_handle,
|
||||
|
||||
Reference in New Issue
Block a user