public UDPprioQueue(int NumberOfLevels, int PromRateMask) { // PromRatemask: 0x03 promotes on each 4 calls, 0x1 on each 2 calls etc nlevels = NumberOfLevels; queues = new Aurora.Framework.LocklessQueue<object>[nlevels]; promotioncntr = new int[nlevels]; for (int i = 0; i < nlevels; i++) { queues[i] = new Aurora.Framework.LocklessQueue<object>(); promotioncntr[i] = 0; } promotionratemask = PromRateMask; }
public UDPprioQueue(int NumberOfLevels, int PromRateMask) { // PromRatemask: 0x03 promotes on each 4 calls, 0x1 on each 2 calls etc nlevels = NumberOfLevels; queues = new Aurora.Framework.LocklessQueue <object> [nlevels]; promotioncntr = new int[nlevels]; for (int i = 0; i < nlevels; i++) { queues[i] = new Aurora.Framework.LocklessQueue <object>(); promotioncntr[i] = 0; } promotionratemask = PromRateMask; }