mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
parent
430d4064b8
commit
571f8fb2f3
@ -46,15 +46,7 @@ class Framebuffer::Driver
|
|||||||
*/
|
*/
|
||||||
void usleep(unsigned us)
|
void usleep(unsigned us)
|
||||||
{
|
{
|
||||||
/* polling */
|
Timer::Connection::usleep(us);
|
||||||
if (us == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
unsigned ms = us / 1000;
|
|
||||||
if (ms == 0)
|
|
||||||
ms = 1;
|
|
||||||
|
|
||||||
Timer::Connection::msleep(ms);
|
|
||||||
}
|
}
|
||||||
} _delayer;
|
} _delayer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user