Seqlocks
An implementation of sequence locks (seqlocks) for lock-free reads in C using atomics
Install / Use
/learn @vasigavr1/SeqlocksREADME
Seqlocks
An implementation of sequence locks (seqlocks) for lock-free reads in C using atomics
- The header file contains the implementation.
- The source file contains usage examples of reading and writing
Note
The implementation assumes x86 architecture (i.e. the TSO memory model) where the memory ordering read --> acquire is enforced (and thus only requires a compiler barrier). For more information for a portable implementation, I recommend Boehms's [paper]{https://www.hpl.hp.com/techreports/2012/HPL-2012-68.pdf}
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
