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 Updated 20 repo stars

File contents

thejefflarson/soundcheck commit 5dff726d26

Frequently asked questions

npx get-skill add thejefflarson/concurrency-correctness