示例#1
0
文件: P_Thread.cs 项目: iSalva/Cosmos
 public P_Thread(int thisReturnProcess, int thisId, int thisLocalRange, int thisPriority, StackContents stack)
 {
     id = thisId;
     returnProcess = thisReturnProcess;
     localRange = thisLocalRange;
     priority = thisPriority;
 }
示例#2
0
 public Thread(int thisId, int thisPriority, string thisReturnIp, string thisReturnMac, int thisReturnProcess, StackContents thisStack)
 {
     id            = thisId;
     returnProcess = thisReturnProcess;
     returnIp      = thisReturnIp;
     returnMac     = thisReturnMac;
     priority      = thisPriority;
     stack         = thisStack;
 }
示例#3
0
文件: P_Thread.cs 项目: iSalva/Cosmos
 public P_Thread(int thisReturnProcess, int thisId, int thisLocalRange, int thisPriority, string thisToIp, string thisToMac, int thisToProcess, StackContents stack)
 {
     id = thisId;
     returnProcess = thisReturnProcess;
     localRange = thisLocalRange;
     priority = thisPriority;
     toIp = thisToIp;
     toMac = thisToMac;
     toProcess = thisToProcess;
 }
示例#4
0
文件: Queue.cs 项目: kuranet/ip_lab3
        public T Dequeue()
        {
            if (IsEmpty)
            {
                throw new InvalidOperationException("Queue Empty");
            }
            T element = StackContents[0];

            StackContents.RemoveAt(0);
            Count--;

            return(element);
        }
示例#5
0
 public P_Thread(int thisReturnProcess, int thisId, int thisLocalRange, int thisPriority, string thisToIp, string thisToMac, int thisToProcess, StackContents stack)
 {
     id            = thisId;
     returnProcess = thisReturnProcess;
     localRange    = thisLocalRange;
     priority      = thisPriority;
     toIp          = thisToIp;
     toMac         = thisToMac;
     toProcess     = thisToProcess;
 }
示例#6
0
 public P_Thread(int thisReturnProcess, int thisId, int thisLocalRange, int thisPriority, StackContents stack)
 {
     id            = thisId;
     returnProcess = thisReturnProcess;
     localRange    = thisLocalRange;
     priority      = thisPriority;
 }
示例#7
0
文件: Queue.cs 项目: kuranet/ip_lab3
 public void Clear()
 {
     StackContents.Clear();
     Count = 0;
 }
示例#8
0
文件: Queue.cs 项目: kuranet/ip_lab3
 public void Enqueue(T element)
 {
     StackContents.Insert(Count, element);
     Count++;
 }
示例#9
0
文件: Thread.cs 项目: iSalva/Cosmos
 public Thread(int thisId, int thisPriority, string thisReturnIp, string thisReturnMac, int thisReturnProcess,StackContents thisStack)
 {
     id = thisId;
     returnProcess = thisReturnProcess;
     returnIp = thisReturnIp;
     returnMac = thisReturnMac;
     priority = thisPriority;
     stack = thisStack;
 }