Exemplo n.º 1
0
 private static uint AddTimer(TimerTask p)
 {
     lock (mQueueLock)
     {
         mPriorityQueue.Enqueue(p.TimerId, p, p.NextTick);
     }
     return(p.TimerId);
 }
Exemplo n.º 2
0
        private static TimerTask GetTimerData(AbstractCallback callback, uint start, int interval)
        {
            TimerTask task = new TimerTask(callback);

            task.Interval = interval;
            task.TimerId  = ++mNextTimerId;
            task.NextTick = mCurrentTick + 1 + start;
            return(task);
        }