System.Threading.CSnziRootNode.Arrive C# (CSharp) 메소드

Arrive() 공개 메소드

public Arrive ( ) : bool
리턴 bool
		public bool Arrive ()
		{
			int old;
			int c;
			CSnziState s;
			
			do {
				old = root;
				
				Decode (old, out c, out s);
				
				if (c == 0 && s == CSnziState.Closed)
					return false;
			} while (Interlocked.CompareExchange (ref root, Encode (c + 1, s), old) != old);
			
			return true;
		}