コード例 #1
0
 // 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);
     }
 }
コード例 #2
0
 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);
     }
 }