Comment

Comment by thestoicattack

To avoid this insidious bug:

    std::lock_guard<std::mutex>(m);  // guard is immediately thrown away
versus the correct

    std::lock_guard<std::mutex> g(m);  // hold mutex til end of scope

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton