Concurrency Correctness

Detects multi-threaded code where a lock is held across a blocking operation, lock acquisition order risks deadlock, lock-free atomics use the wrong memory ordering, or double-checked locking is missing the necessary barrier. Use when writing or modifying code that acquires multiple locks, uses atomic operations with explicit memory orders (std::memory_order_*, atomic.LoadAcquire, Ordering::Relaxed), implements lazy initialization with double-checked locking, or calls a blocking operation (I/O, sleep, await, blocking channel send) inside a locked region.

thejefflarson 5dff726 4.6 KB Updated

File contents

thejefflarson/soundcheck/tree/main/.claude/skills/concurrency-correctness commit 5dff726d26

Frequently asked questions

npx skillmds@latest add thejefflarson/concurrency-correctness