mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibCore: Prefix AK::Duration with AK Namespace
This commit is contained in:
parent
6772d442e5
commit
383c15b22e
Notes:
sideshowbarker
2024-07-18 23:46:56 +09:00
Author: https://github.com/ADKaster
Commit: 383c15b22e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/676
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/trflynn89 ✅
6 changed files with 16 additions and 16 deletions
|
@ -71,7 +71,7 @@ public:
|
|||
|
||||
protected:
|
||||
union {
|
||||
Duration m_duration;
|
||||
AK::Duration m_duration;
|
||||
MonotonicTime m_fire_time;
|
||||
};
|
||||
|
||||
|
@ -209,7 +209,7 @@ public:
|
|||
ThreadEventQueue::current().post_event(*strong_owner, make<TimerEvent>());
|
||||
}
|
||||
|
||||
Duration interval;
|
||||
AK::Duration interval;
|
||||
bool should_reload { false };
|
||||
TimerShouldFireWhenNotVisible fire_when_not_visible { TimerShouldFireWhenNotVisible::No };
|
||||
WeakPtr<EventReceiver> owner;
|
||||
|
@ -367,7 +367,7 @@ retry:
|
|||
if (next_timer_expiration.has_value()) {
|
||||
auto computed_timeout = next_timer_expiration.value() - time_at_iteration_start;
|
||||
if (computed_timeout.is_negative())
|
||||
computed_timeout = Duration::zero();
|
||||
computed_timeout = AK::Duration::zero();
|
||||
i64 true_timeout = computed_timeout.to_milliseconds();
|
||||
timeout = static_cast<i32>(min<i64>(AK::NumericLimits<i32>::max(), true_timeout));
|
||||
} else {
|
||||
|
@ -651,7 +651,7 @@ intptr_t EventLoopManagerUnix::register_timer(EventReceiver& object, int millise
|
|||
auto timer = new EventLoopTimer;
|
||||
timer->owner_thread = s_thread_id;
|
||||
timer->owner = object;
|
||||
timer->interval = Duration::from_milliseconds(milliseconds);
|
||||
timer->interval = AK::Duration::from_milliseconds(milliseconds);
|
||||
timer->reload(MonotonicTime::now_coarse());
|
||||
timer->should_reload = should_reload;
|
||||
timer->fire_when_not_visible = fire_when_not_visible;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue