/// <summary> /// Creates a new async-compatible mutual exclusion lock. /// </summary> public AsyncLock() { _semaphore = new AsyncSemaphore(1); _releaser = Task.FromResult(new Releaser(this)); }
/// <summary> /// Creates a new async-compatible mutual exclusion lock. /// </summary> public AsyncLock() { m_semaphore = new AsyncSemaphore(1); m_releaser = Task.FromResult(new Releaser(this)); }