Soenneker.Queues.Intrusive.Abstractions
11.0.35
Prefix Reserved
dotnet add package Soenneker.Queues.Intrusive.Abstractions --version 11.0.35
NuGet\Install-Package Soenneker.Queues.Intrusive.Abstractions -Version 11.0.35
<PackageReference Include="Soenneker.Queues.Intrusive.Abstractions" Version="11.0.35" />
<PackageVersion Include="Soenneker.Queues.Intrusive.Abstractions" Version="11.0.35" />
<PackageReference Include="Soenneker.Queues.Intrusive.Abstractions" />
paket add Soenneker.Queues.Intrusive.Abstractions --version 11.0.35
#r "nuget: Soenneker.Queues.Intrusive.Abstractions, 11.0.35"
#:package Soenneker.Queues.Intrusive.Abstractions@11.0.35
#addin nuget:?package=Soenneker.Queues.Intrusive.Abstractions&version=11.0.35
#tool nuget:?package=Soenneker.Queues.Intrusive.Abstractions&version=11.0.35
Soenneker.Queues.Intrusive.Abstractions
Defines the forward-link contract used by Soenneker intrusive queues and provides a reusable node base class.
An intrusive queue stores linkage on the queued object itself. This avoids allocating a separate wrapper node, but it also means the queue owns that link while the object is enqueued.
Install
dotnet add package Soenneker.Queues.Intrusive.Abstractions
Define a node
The simplest implementation derives from IntrusiveNode<TNode>:
using Soenneker.Queues.Intrusive.Abstractions;
public sealed class WorkItem : IntrusiveNode<WorkItem>
{
public required string Payload { get; init; }
}
Use IIntrusiveNode<TNode> directly when the type already has its own base class:
public sealed class WorkItem : IIntrusiveNode<WorkItem>
{
private WorkItem? _next;
public ref WorkItem? Next => ref _next;
}
Next must return a reference to a real, stable field. Lock-free queue implementations use that storage with Volatile and Interlocked; a computed value or temporary does not satisfy the contract.
Ownership rules
- Do not read or write
Nextwhile the node is owned by a queue. - Do not enqueue the same node twice, concurrently, or into two intrusive structures at once.
- Reuse a node only after the owning queue has removed it.
- Expect queue implementations to clear
Nextduring enqueue, dequeue, or reuse preparation.
Violating these rules can corrupt queue linkage. The abstractions intentionally do not add per-node state or runtime checks that would change the lock-free data structure’s cost model.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Queues.Intrusive.Abstractions:
| Package | Downloads |
|---|---|
|
Soenneker.Queues.Intrusive.ValueMpsc
Provides a high performance mpsc intrusive queue primitive |
|
|
Soenneker.Queues.Intrusive.Mpsc
Provides a high performance mpsc intrusive queue primitive |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.35 | 13,761 | 11/18/2026 |
| 11.0.34 | 132,995 | 11/11/2026 |
| 11.0.33 | 210,070 | 10/26/2026 |
| 4.0.32 | 99,186 | 10/14/2026 |
| 4.0.31 | 2,832 | 10/14/2026 |
| 4.0.26 | 6,417 | 10/12/2026 |
| 4.0.25 | 127 | 10/12/2026 |
| 4.0.24 | 36,526 | 10/11/2026 |
| 4.0.23 | 233,237 | 9/24/2026 |
| 4.0.22 | 93,439 | 9/15/2026 |
| 4.0.21 | 75,456 | 9/12/2026 |
| 4.0.20 | 285,749 | 8/30/2026 |
| 4.0.19 | 33,643 | 8/29/2026 |
| 4.0.18 | 129 | 8/29/2026 |
| 4.0.17 | 373,757 | 7/28/2026 |
| 4.0.16 | 120,929 | 7/18/2026 |
| 4.0.15 | 273,056 | 6/18/2026 |
| 4.0.14 | 215,200 | 6/5/2026 |
| 4.0.13 | 148 | 6/5/2026 |
| 4.0.12 | 272,483 | 4/23/2026 |
Configure .NET CI defaults and daily source scans