Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public HashedWheelSlot(HashWheelTimer timer)
 {
     woner = timer;
 }
Exemplo n.º 3
0
 public Timeout(HashWheelTimer timer)
 {
     this.timer = timer;
 }