dsound: Set name of internal threads.

This commit is contained in:
Brendan Shanks 2022-11-02 14:23:35 -07:00 committed by Alexandre Julliard
parent 8f81273904
commit 28b6acd155
2 changed files with 3 additions and 0 deletions

View file

@ -951,6 +951,8 @@ static DWORD WINAPI DSOUND_capture_thread(void *user)
DWORD ret, wait_ms;
REFERENCE_TIME period;
SetThreadDescription(GetCurrentThread(), L"wine_dsound_capture");
hr = IAudioClient_GetDevicePeriod(buffer->device->client, &period, NULL);
if(FAILED(hr)){
WARN("GetDevicePeriod failed: %08lx\n", hr);

View file

@ -783,6 +783,7 @@ DWORD CALLBACK DSOUND_mixthread(void *p)
{
DirectSoundDevice *dev = p;
TRACE("(%p)\n", dev);
SetThreadDescription(GetCurrentThread(), L"wine_dsound_mixer");
while (dev->ref) {
DWORD ret;