コード例 #1
0
 /// <summary>
 /// Releases the lock. Subsequent calls to this method do nothing.
 /// </summary>
 public void Dispose()
 {
     if (parent == null)
     {
         return;
     }
     parent.Unlock();
     parent = null;
 }
コード例 #2
0
ファイル: LockToken.cs プロジェクト: svn2github/essence-udk
		/// <summary>
		/// Releases the lock. Subsequent calls to this method do nothing.
		/// </summary>
		public void Dispose()
		{
			if (parent==null)
			{
				return;
			}
			parent.Unlock();
			parent = null;
		}
コード例 #3
0
 /// <summary>
 /// Constructs a new lock token for the specified lock.
 /// </summary>
 /// <param name="parent">The internal monitor used for locking.</param>
 internal LockToken(SyncLock parent)
 {
     this.parent = parent;
 }
コード例 #4
0
ファイル: LockToken.cs プロジェクト: svn2github/essence-udk
		/// <summary>
		/// Constructs a new lock token for the specified lock.
		/// </summary>
		/// <param name="parent">The internal monitor used for locking.</param>
		internal LockToken (SyncLock parent)
		{
			this.parent = parent;
		}