Re: [FreeRDP-devel] WaitForMultipleObjects and high CPU load

2020-02-17 Thread Armin Novak via FreeRDP-devel
Hi Andrey, thank you for the report and patch, I´ve created https://github.com/FreeRDP/FreeRDP/issues/5889 for the time being and will create a patch from that as soon as I have completed my current task. regards Armin On 18.02.20 06:12, Andrey Vasilkin via FreeRDP-devel wrote: #ifdef 1 /*

[FreeRDP-devel] WaitForMultipleObjects and high CPU load

2020-02-17 Thread Andrey Vasilkin via FreeRDP-devel
Hi There is a problem with the WaitForMultipleObjects (libwinpr/synch/wait.c) function: when an object is waiting for, say, writing and is ready to read (or vice versa - we are waiting for reading, the object is ready to write), the maximum CPU utilization occurs. The fact is that no matter