jtk.timer: specify functions with package-only access
This commit is contained in:
parent
eea524f106
commit
273d0faa44
@ -27,7 +27,7 @@ class Timer
|
|||||||
timers.remove(this);
|
timers.remove(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void service()
|
package void service()
|
||||||
{
|
{
|
||||||
if (this.interval == 0u)
|
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();
|
ulong current_time = us_time();
|
||||||
foreach (Timer timer; timers)
|
foreach (Timer timer; timers)
|
||||||
@ -52,7 +52,7 @@ class Timer
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ulong time_to_next_timer_expiration()
|
package static ulong time_to_next_timer_expiration()
|
||||||
{
|
{
|
||||||
ulong rv = cast(ulong)-1;
|
ulong rv = cast(ulong)-1;
|
||||||
ulong current_time = us_time();
|
ulong current_time = us_time();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user