In many embedded devices, aggressive power management is practiced. The processor could try to go to sleep any time (every second for example). While processor is sleeping in power save mode, the display can remain turned on depending on the hardware implementation. User continue to view the previously drawn screen (before sleep). This gives a GUI application always running experience. Processor will come out of sleep mode when there is some network traffic, button press, or some hardware timer expires. Then it refreshes the screen again if needed.

What if Qt was in middle of drawing something, while processor goes to sleep ? Since the display unit is on, do a user will see it partially drawn ?
Do the double buffering in Qt framework solve this problem ? Or any locking mechanism is available in Qt to avoid the race condition of processor going to sleep and drawing on display.

Any help in understanding the underlying mechanism is welcome.
(I am new to graphics and Qt)

Thanks
Lunar M.