C# Class Blockcore.Utilities.Extensions.ThreadingExtensions

Show file Open project: x42protocol/x42-BlockCore

Public Methods

Method Description
SafeRelease ( SemaphoreSlim me ) : void

Don't throw SemaphoreFullException https://stackoverflow.com/questions/4706734/semaphore-what-is-the-use-of-initial-count

SafeRelease ( SemaphoreSlim me, int releaseCount ) : void

Don't throw SemaphoreFullException https://stackoverflow.com/questions/4706734/semaphore-what-is-the-use-of-initial-count

Method Details

SafeRelease() public static method

Don't throw SemaphoreFullException https://stackoverflow.com/questions/4706734/semaphore-what-is-the-use-of-initial-count
public static SafeRelease ( SemaphoreSlim me ) : void
me SemaphoreSlim
return void

SafeRelease() public static method

Don't throw SemaphoreFullException https://stackoverflow.com/questions/4706734/semaphore-what-is-the-use-of-initial-count
public static SafeRelease ( SemaphoreSlim me, int releaseCount ) : void
me SemaphoreSlim
releaseCount int
return void