Class ExclusiveBlock
Ensures operation exclusivity without lock.
Inherited Members
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public sealed class ExclusiveBlock : Disposable, IDisposableEx
Remarks
This class is intended to signal the attempt to call non thread safe code parallelly.
Constructors
ExclusiveBlock()
Creates a new ExclusiveBlock instance.
Declaration
public ExclusiveBlock()
ExclusiveBlock(ExclusiveBlockFeatures)
Creates a new ExclusiveBlock instance.
Declaration
public ExclusiveBlock(ExclusiveBlockFeatures features)
Parameters
Type | Name | Description |
---|---|---|
ExclusiveBlockFeatures | features |
Properties
Features
Describes the features of this instance.
Declaration
public ExclusiveBlockFeatures Features { get; }
Property Value
Type | Description |
---|---|
ExclusiveBlockFeatures |
Methods
Dispose(Boolean)
Contains the disposal related logic.
Declaration
protected override void Dispose(bool disposeManaged)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposeManaged |
Overrides
Enter()
Gets the scope for an exclusive operation.
Declaration
public IDisposable Enter()
Returns
Type | Description |
---|---|
System.IDisposable |
Implements
System.IDisposable
System.IAsyncDisposable