void run() { while (true) { Sleep(10); } };
C++ (Qt) while(true){ sleep(0.01); loop.processEvents(); }