Show / Hide Table of Contents

Namespace DotNext.Threading

Classes

AsyncAutoResetEvent

Represents asynchronous version of AutoResetEvent.

AsyncBarrier

Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.

AsyncBridge

Allows to turn WaitHandle and CancellationToken into task.

AsyncCorrelationSource<TKey, TValue>

Represents pub/sub synchronization primitive when each event has unique identifier.

AsyncCountdownEvent

Represents a synchronization primitive that is signaled when its count reaches zero.

AsyncCounter

Represents a synchronization primitive that is signaled when its count becomes non-zero.

AsyncEventHub

Represents a collection of asynchronous events.

AsyncExchanger<T>

Represents a synchronization point at which two async flows can cooperate and swap elements within pairs.

AsyncExclusiveLock

Represents asynchronous mutually exclusive lock.

AsyncLazy<T>

Provides support for asynchronous lazy initialization.

AsyncManualResetEvent

Represents asynchronous version of ManualResetEvent.

AsyncReaderWriterLock

Represents asynchronous version of ReaderWriterLockSlim.

AsyncSharedLock

Represents a lock that can be acquired in exclusive or weak mode.

AsyncTrigger

Represents asynchronous trigger that allows to resume and suspend concurrent flows.

Atomic

Exposes atomic operations for thread-safe scenarios.

BlockingOperations

Extends Lock and Thread types with cancellation token support for synchronization.

ConcurrencyLimitReachedException

Indicates that the internal queue of the synchronization primitive is full.

Epoch

Implements epoch-based reclamation.

Epoch.Discardable

Represents an object which lifetime is controlled by Epoch internal Garbage Collector.

ExchangeTerminatedException

Indicates that the exchange has been terminated by the one of participants.

MultiplexedCancellationTokenSource

Provides extension methods for IMultiplexedCancellationTokenSource

PendingTaskInterruptedException

The exception thrown when pending asynchronous task is interrupted while it is in waiting state.

QueuedSynchronizer

Provides a framework for implementing asynchronous locks and related synchronization primitives that rely on first-in-first-out (FIFO) wait queues.

QueuedSynchronizer<TContext>

Provides low-level infrastructure for writing custom synchronization primitives.

QueuedSynchronizer<TContext>.ExceptionFactory

Represents the exception factory.

Scheduler

Represents timer-based scheduler.

Scheduler.DelayedTask

Represents a task with delayed completion.

Scheduler.DelayedTaskCanceledException

Represents an exception indicating that the delayed task is canceled safely without entering the scheduled callback.

Scheduler.DelayedTask<TResult>

Represents a task with delayed completion.

ThreadPoolWorkItemFactory

Represents factory of thread pool work items.

TimeoutExtensions

Provides extension for Timeout type.

Structs

AsyncEventHub.EventGroup

Represents a group of events.

AsyncEventHub.EventGroup.Enumerator

Represents an enumerator over indices.

AsyncLock

Unified representation of asynchronous exclusive lock, semaphore lock, read lock, write lock or upgradeable read lock.

AsyncLock.Scope

Represents acquired asynchronous lock.

AsyncReaderWriterLock.LockStamp

Represents lock stamp used for optimistic reading.

Atomic<T>

Provides atomic access to non-primitive data type.

CancellationTokenMultiplexer

Represents cancellation token multiplexer.

CancellationTokenMultiplexer.Scope

Represents a scope that controls the lifetime of the multiplexed cancellation token.

CancellationTokenMultiplexer.ScopeWithTimeout

Represents a scope that controls the lifetime of the multiplexed cancellation token and allows to specify the timeout.

Epoch.RecycleBin

Encapsulates actions deferred previously by Defer(Action) method and its overloads.

Epoch.Scope

Represents a scope of the region of code protected by the epoch.

Lock

Unified representation of monitor lock, semaphore lock, read lock, write lock or upgradeable read lock.

Lock.Scope

Represents acquired lock holder.

ReaderWriterSpinLock

Represents lightweight reader-writer lock based on spin loop.

Timeout

Helps to compute timeout for asynchronous operations.

Interfaces

IAsyncEvent

Represents asynchronous event.

IAsyncResetEvent

Represents asynchronous flow synchronization event.

IMultiplexedCancellationTokenSource

Represents multiplexed cancellation token source.

Delegates

Atomic<T>.Accumulator

Represents atomic accumulator.

Atomic<T>.Updater

Represents atomic update action.

☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾