Provides a framework for implementing asynchronous locks and related synchronization primitives that rely on first-in-first-out (FIFO) wait queues.
InheritanceQueuedSynchronizer
Namespace: DotNext.Threading Assembly: DotNext.Threading.dll Syntaxpublic class QueuedSynchronizer : Disposable, IDisposable
Properties | Edit this page View Source MeasurementTags
Sets a list of tags to be associated with each measurement.
Declaration[CLSCompliant(false)]
public TagList MeasurementTags { init; }
Property Value Methods | Edit this page View Source CancelSuspendedCallers(CancellationToken)
Cancels all suspended callers.
Declarationpublic void CancelSuspendedCallers(CancellationToken token)
Parameters Exceptions | Edit this page View Source Dispose(bool)
Releases all resources associated with this object.
Declarationprotected override void Dispose(bool disposing)
Parameters Type Name Description bool disposing
Indicates whether the Dispose(bool) has been called directly or from finalizer.
Overrides | Edit this page View Source Dispose(Exception?)Releases all resources associated with this object.
Declarationpublic void Dispose(Exception? reason)
Parameters Type Name Description Exception reason
The exeption to be passed to all suspended callers.
| Edit this page View Source DisposeAsync()Disposes this synchronization primitive gracefully.
Declarationpublic ValueTask DisposeAsync()
Returns Type Description ValueTask
The task representing asynchronous result.
| Edit this page View Source DisposeAsyncCore()Releases managed resources associated with this object asynchronously.
Declarationprotected override ValueTask DisposeAsyncCore()
Returns Type Description ValueTask
The task representing asynchronous execution of this method.
Overrides | Edit this page View Source GetSuspendedCallers()Gets a list of suspended callers respecting their order in wait queue.
Declarationpublic IReadOnlyList<object?> GetSuspendedCallers()
Returns See Also | Edit this page View Source SetCallerInformation(object)
Sets caller information in DEBUG configuration.
Declaration[Conditional("DEBUG")]
public void SetCallerInformation(object information)
Parameters Type Name Description object information
The object that identifies the caller.
| Edit this page View Source TrackSuspendedCallers(Func<object>?)Enables capturing information about suspended callers in DEBUG configuration.
Declaration[Conditional("DEBUG")]
public void TrackSuspendedCallers(Func<object>? callerInfoProvider = null)
Parameters Type Name Description Func<object> callerInfoProvider
The optional factory of the information about the caller.
Implements Extension MethodsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4