SkillAgentSearch skills...

Spinlock

Different implementations of spinlock.

Install / Use

/learn @cyfdecyf/Spinlock
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Various spinlock implementations from this article Spinlocks and Read-Write Locks by Lockless Inc.

I made some modification to make each implementation self contained and provide a benchmark script. The code relies on GCC's built-in functions for atomic memory access.

Note: Scalability is achieved by avoiding sharing and contention, not by scalable locks.

View on GitHub
GitHub Stars104
CategoryDevelopment
Updated15h ago
Forks29

Languages

C

Security Score

80/100

Audited on Mar 30, 2026

No findings