在程序中如果有使用死循环的地方一定要注意,最好加点sleep把CPU资源释放出来,不然会一直抢占CPU资源
std::this_thread::sleep_for(std::chrono::milliseconds(100));
在程序中如果有使用死循环的地方一定要注意,最好加点sleep把CPU资源释放出来,不然会一直抢占CPU资源
std::this_thread::sleep_for(std::chrono::milliseconds(100));