AutoReleaser

Use the AutoReleaser class to hold a reference with a lifetime that corresponds to a semaphore Acquire operation or a mutex Lock operation. When you release the final reference to the AutoReleaser object, one of the following operations complete:

Methods

See Also

Mutex

Mutex.LockMutex

Semaphore

Semaphore.AcquireSemaphoreWithAutoReleaser