Skip to content

Commit c773c32

Browse files
neakorrudro
authored andcommitted
Add AutoReleasingSemaphore (#30)
Similar to `DispatchSemaphore`, `AutoReleasingSemaphore` is a synchronization mechanism that ensures only a set number of threads can concurrently access a protected resource. Unlike `DispatchSemaphore`, `AutoReleasingSemaphore` auto-releases all blocked threads when the semaphore itself is deallocated.
1 parent d132096 commit c773c32

File tree

3 files changed

+382
-210
lines changed

3 files changed

+382
-210
lines changed

0 commit comments

Comments
 (0)