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.
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.atomics.strings
- Owner: soenneker
- License: mit
- Created: 2026-01-08T18:42:14.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-12T09:04:26.000Z (6 months ago)
- Last Synced: 2026-01-12T09:49:41.472Z (6 months ago)
- Topics: atomic, atomics, atomicstring, csharp, dotnet, lock, object, reference, string, strings, volatile
- Language: C#
- Homepage: https://soenneker.com
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.atomics.strings/)
[](https://github.com/soenneker/soenneker.atomics.strings/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.atomics.strings/)
[](https://github.com/soenneker/soenneker.atomics.strings/actions/workflows/codeql.yml)
#  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
```