System.Threading.CSnziRootNode.Close C# (CSharp) Method

Close() public method

public Close ( ) : bool
return bool
		public bool Close ()
		{
			int old, newRoot;
			int c;
			CSnziState s;
			
			do {
				old = root;
	
				Decode (old, out c, out s);
				if (s != CSnziState.Open)
					return false;
				
				newRoot = Encode (c, CSnziState.Closed);
			} while (Interlocked.CompareExchange (ref root, newRoot, old) != old);
			
			return c == 0;
		}
		

Usage Example

コード例 #1
0
ファイル: CSnzi.cs プロジェクト: raj581/Marvin
 public bool Close()
 {
     return(root.Close());
 }