mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Implement event loop timers.
GObjects can now register a timer with the GEventLoop. This will eventually cause GTimerEvents to be dispatched to the GObject. This needed a few supporting changes in the kernel: - The PIT now ticks 1000 times/sec. - select() now supports an arbitrary timeout. - gettimeofday() now returns something in the tv_usec field. With these changes, the clock window in guitest2 finally ticks on its own.
This commit is contained in:
parent
9153666e72
commit
95c3442d59
10 changed files with 140 additions and 7 deletions
|
@ -1,9 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#define TICKS_PER_SECOND 600
|
||||
#include <AK/Types.h>
|
||||
|
||||
#define TICKS_PER_SECOND 1000
|
||||
|
||||
namespace PIT {
|
||||
|
||||
void initialize();
|
||||
dword ticks_since_boot();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue