Maarten Lankhorst wrote: > Well, the use case would be wine's wineserver. On windows programs > usually set audio threads to THREAD_PRIORITY_TIME_CRITICAL to indicate > that they have to have a certain priority. But in windows thread handles > are global, so doing it inside wine's 'ntdll' library wouldn't make much > sense, since the request to set the priority would go to wineserver > first, since there's no way to tell from inside a wine program to tell > which handle corresponds to the thread, or even if that handle is local > or not. Wineserver controls this information so all requests that > involve handles involve a wineserver call, in general. So racing cannot > happen, because wineserver is the only one making the requests. Just a question, what about RLIMIT_RTTIME, which rtkit requires to be set for enabling rt? AFAIK there is no equivalent in Windows. // David