In a time waiting scenario:
our software works in the background, and synchronizes data with the server in every 20 - 30 minutes.
I wanted to use
std::this_thread::sleep_for
But my superior strongly against any form of sleep function. He recommends
std::condition_variable::wait_until(lock, timeout-time, pred)
I wonder if there are any disadvantage for sleep_for under such scenario?