[channels,drdynvc] set thread priority

This commit is contained in:
akallabeth 2024-05-24 11:04:27 +02:00
parent ef4c1766d2
commit 3b895deb97
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -1726,6 +1726,12 @@ static UINT drdynvc_virtual_channel_event_connected(drdynvcPlugin* drdynvc, LPVO
goto error;
}
}
if (!SetThreadPriority(drdynvc->thread, THREAD_PRIORITY_HIGHEST))
{
error = ERROR_INTERNAL_ERROR;
WLog_Print(drdynvc->log, WLOG_ERROR, "SetThreadPriority failed!");
goto error;
}
error:
return error;