From 273d0faa44fa968f63e8f97daf4126b564fbb7d0 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 23 Jun 2020 16:55:50 -0400 Subject: [PATCH] jtk.timer: specify functions with package-only access --- src/jtk/timer.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jtk/timer.d b/src/jtk/timer.d index f93afd4..41cd95e 100644 --- a/src/jtk/timer.d +++ b/src/jtk/timer.d @@ -27,7 +27,7 @@ class Timer timers.remove(this); } - void service() + package void service() { if (this.interval == 0u) { @@ -39,7 +39,7 @@ class Timer } } - static Timer get_expired_timer() + package static Timer get_expired_timer() { ulong current_time = us_time(); foreach (Timer timer; timers) @@ -52,7 +52,7 @@ class Timer return null; } - static ulong time_to_next_timer_expiration() + package static ulong time_to_next_timer_expiration() { ulong rv = cast(ulong)-1; ulong current_time = us_time();