Sleep system call very broken on Mac OS X
I'm trying to run a service on my Mac Mini (M1). But it has unexplained random delays from few seconds to 20 minutes many times during the day. It works perfectly on Linux. Sleep appears to be very broken on Mac OS X. The machine doesn't run anything else, only a few development tools are installed, screen and keyboard are not connected. I made a minimal reproduction: #include <iostream> #include <thread> #include <chrono> int main() { for (;;) { std::this_thread::sleep_for(std::chrono::seconds(10)); const auto now = std::chrono::system_clock::now(); std::cout << "Wall clock: " << now << std::
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.