You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adaptive_wait uses std::his_thread::sleep_for(INITIAL_WAITING_TIME) with 100µs for INITIAL_WAITING_TIME as second stage in the waiting strategy. This is done for around 10000 iterations before switching to the final waiting strategy with 10ms steps. On Windows this might result in immediate wakeups and a higher CPU load.
Potential fix
In order to fix the problem nanosleep could be used but unfortunately this is not available on Windows and it is pretty hard to reliably achieve sleep times below 1ms. There are a few option which can be explored
Brief feature description
adaptive_wait
usesstd::his_thread::sleep_for(INITIAL_WAITING_TIME)
with 100µs forINITIAL_WAITING_TIME
as second stage in the waiting strategy. This is done for around 10000 iterations before switching to the final waiting strategy with 10ms steps. On Windows this might result in immediate wakeups and a higher CPU load.Potential fix
In order to fix the problem
nanosleep
could be used but unfortunately this is not available on Windows and it is pretty hard to reliably achieve sleep times below 1ms. There are a few option which can be exploredThe text was updated successfully, but these errors were encountered: