예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj as LockFreeNode == null)
            {
                return(false);
            }

            LockFreeNode node = (LockFreeNode)obj;

            return((node.StudentID == StudentID) && (node.CourseID == CourseID));
        }
예제 #2
0
 public LockFreeListWindow(LockFreeNode previous, LockFreeNode current)
 {
     Previous = previous;
     Current  = current;
 }
예제 #3
0
 public virtual void Free(LockFreeNode <T> node)
 {
     node.Item = default(T);
 }
예제 #4
0
 public void SetNext(LockFreeNode node)
 {
     next = node;
 }