jtk.timer: specify functions with package-only access

This commit is contained in:
Josh Holtrop 2020-06-23 16:55:50 -04:00
parent eea524f106
commit 273d0faa44

View File

@ -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();