mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibCore+Ladybird: Don't force timer ids to be integer just to remap them
If we don't force event loop to fit timer id into integer, we can eliminate awkward IDAllocator inside EventLoopImplementations.
This commit is contained in:
parent
bed4af6fef
commit
b77996884e
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/DanShaders
Commit: b77996884e
Pull-request: https://github.com/SerenityOS/serenity/pull/23149
Reviewed-by: https://github.com/ADKaster ✅
10 changed files with 36 additions and 46 deletions
|
@ -17,8 +17,8 @@ public:
|
|||
|
||||
virtual NonnullOwnPtr<EventLoopImplementation> make_implementation() override;
|
||||
|
||||
virtual int register_timer(EventReceiver&, int milliseconds, bool should_reload, TimerShouldFireWhenNotVisible) override;
|
||||
virtual void unregister_timer(int timer_id) override;
|
||||
virtual intptr_t register_timer(EventReceiver&, int milliseconds, bool should_reload, TimerShouldFireWhenNotVisible) override;
|
||||
virtual void unregister_timer(intptr_t timer_id) override;
|
||||
|
||||
virtual void register_notifier(Notifier&) override;
|
||||
virtual void unregister_notifier(Notifier&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue