// se crea una nueva cola con el ID de cola del Host public uint NewQueue(uint queueID) { lock (syncObjList) { lastQueueID = queueID; CContinuousModeQueue queuedata = new CContinuousModeQueue(queueID); queueList.Add(queuedata); return(queueID); } }
public uint NewQueue() { lock (syncObjList) { if (lastQueueID >= UInt32.MaxValue - 1) { lastQueueID = (uint)0; } else { lastQueueID += System.Convert.ToUInt32((uint)1); } CContinuousModeQueue queuedata = new CContinuousModeQueue(lastQueueID); queueList.Add(queuedata); return(lastQueueID); } }