Semaphore.ReleaseSemaphore
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
Semaphore.ReleaseSemaphore
Syntax
Semaphore.ReleaseSemaphore
Purpose
Note
This method is obsolete. Use the
Semaphore.ReleaseSemaphoreEx
method instead.
Remarks
Performs a Release (increment) operation on the semaphore. Use this method when you want direct control over the count of the semaphore or when you use semaphores in a way that requires unmatched increments and decrements. When you use the Semaphore.AcquireSemaphoreWithAutoReleaser method, releasing the last reference to the AutoReleaser object calls this method automatically.