Unosquare
    Show / Hide Table of Contents

    Namespace Swan.Threading

    Classes

    AtomicBoolean

    Fast, atomic boolean combining interlocked to write value and volatile to read values.

    AtomicDateTime

    Defines an atomic DateTime.

    AtomicDouble

    Fast, atomic double combining interlocked to write value and volatile to read values.

    AtomicEnum<T>

    Defines an atomic generic Enum.

    AtomicInteger

    Represents an atomically readable or writable integer.

    AtomicLong

    Fast, atomic long combining interlocked to write value and volatile to read values.

    AtomicTimeSpan

    Represents an atomic TimeSpan type.

    AtomicTypeBase<T>

    Provides a generic implementation of an Atomic (interlocked) type

    Idea taken from Memory model and .NET operations in article: http://igoro.com/archive/volatile-keyword-in-c-memory-model-explained/.

    CancellationTokenOwner

    Acts as a but with reusable tokens.

    DelayProvider

    Represents logic providing several delay mechanisms.

    ExclusiveTimer

    A threading Swan.Threading.ExclusiveTimer._backingTimer implementation that executes at most one cycle at a time in a thread. Callback execution is NOT guaranteed to be carried out on the same thread every time the timer fires.

    PeriodicTask

    Schedule an action to be periodically executed on the thread pool.

    RunnerBase

    Represents an background worker abstraction with a life cycle and running at a independent thread.

    SyncLockerFactory

    Provides factory methods to create synchronized reader-writer locks that support a generalized locking and releasing api and syntax.

    ThreadWorkerBase

    Provides a base implementation for application workers that perform continuous, long-running tasks. This class provides the ability to perform fine-grained control on these tasks.

    TimerWorkerBase

    Provides a base implementation for application workers.

    WaitEventFactory

    Provides a Manual Reset Event factory with a unified API.

    WorkerBase

    Provides base infrastructure for Timer and Thread workers.

    WorkerDelayProvider

    Represents a class that implements delay logic for thread workers.

    Interfaces

    ISyncLocker

    Defines a generic interface for synchronized locking mechanisms.

    IWaitEvent

    Provides a generalized API for ManualResetEvent and ManualResetEventSlim.

    IWorker

    Defines a standard API to control background application workers.

    IWorkerDelayProvider

    An interface for a worker cycle delay provider.

    Enums

    DelayProvider.DelayStrategy

    Enumerates the different ways of providing delays.

    WorkerBase.StateChangeRequest

    Enumerates all the different state change requests.

    WorkerState

    Enumerates the different states in which a worker can be.

    Comments

    Back to top Copyright © 2017-2019 Unosquare