Exemple #1
0
        static HashedWheelSlot[] CreateWheel(HashWheelTimer owner, int ticksPerWheel)
        {
            ticksPerWheel = NormalizeTicksPerWheel(ticksPerWheel);
            var wheel = new HashedWheelSlot[ticksPerWheel];

            for (int i = 0; i < wheel.Length; i++)
            {
                wheel[i] = new HashedWheelSlot(owner);
            }
            return(wheel);
        }
Exemple #2
0
 public HashedWheelSlot(HashWheelTimer timer)
 {
     woner = timer;
 }
Exemple #3
0
 public Timeout(HashWheelTimer timer)
 {
     this.timer = timer;
 }