// se crea una nueva cola con el ID de cola del Host public uint NewQueue(uint queueID) { lock (syncObjList) { lastQueueID = queueID; CContinuousModeQueue_HA queuedata = new CContinuousModeQueue_HA(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_HA queuedata = new CContinuousModeQueue_HA(lastQueueID); queueList.Add(queuedata); return(lastQueueID); } }