public P_Thread(int thisReturnProcess, int thisId, int thisLocalRange, int thisPriority, StackContents stack) { id = thisId; returnProcess = thisReturnProcess; localRange = thisLocalRange; priority = thisPriority; }
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; }
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; }
public T Dequeue() { if (IsEmpty) { throw new InvalidOperationException("Queue Empty"); } T element = StackContents[0]; StackContents.RemoveAt(0); Count--; return(element); }
public void Clear() { StackContents.Clear(); Count = 0; }
public void Enqueue(T element) { StackContents.Insert(Count, element); Count++; }
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; }