Are there any known portability issues to consider when using std::this_thread::sleep_for() for milliseconds and upward?
In a project I'm working on, I hope to replace a bouquet of platform-specific implementations all designed to yield for a specified number of milliseconds, give or take, using anything from Microsoft's Sleep() to naonsleep() to usleep, depending on what is available on a particular platform. Some of these come with notable limitations, such as not supporting delays of 1000 ms or more on certain platforms.
Does std::this_thread::sleep_for() suffer from such quirks, too?
Aucun commentaire:
Enregistrer un commentaire