SkillAgentSearch skills...

Seqlocks

An implementation of sequence locks (seqlocks) for lock-free reads in C using atomics

Install / Use

/learn @vasigavr1/Seqlocks
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated4mo ago
Forks1

Languages

C

Security Score

82/100

Audited on Nov 4, 2025

No findings