An open API service indexing awesome lists of open source software.

https://github.com/soenneker/soenneker.atomics.strings

A lock-free, thread-safe wrapper for atomically publishing and reading a string reference. Designed for shared, mutable string state with minimal allocations, supporting fast reads and safe one-time or racing initialization without locks.
https://github.com/soenneker/soenneker.atomics.strings

atomic atomics atomicstring csharp dotnet lock object reference string strings volatile

Last synced: 4 months ago
JSON representation

A lock-free, thread-safe wrapper for atomically publishing and reading a string reference. Designed for shared, mutable string state with minimal allocations, supporting fast reads and safe one-time or racing initialization without locks.

Awesome Lists containing this project

README

          

[![](https://img.shields.io/nuget/v/soenneker.atomics.strings.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.atomics.strings/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.atomics.strings/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.atomics.strings/actions/workflows/publish-package.yml)
[![](https://img.shields.io/nuget/dt/soenneker.atomics.strings.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.atomics.strings/)
[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.atomics.strings/codeql.yml?label=CodeQL&style=for-the-badge)](https://github.com/soenneker/soenneker.atomics.strings/actions/workflows/codeql.yml)

# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Atomics.Strings
### A lock-free, thread-safe wrapper for atomically publishing and reading a string reference. Designed for shared, mutable string state with minimal allocations, supporting fast reads and safe one-time or racing initialization without locks.

## Installation

```
dotnet add package Soenneker.Atomics.Strings
```