Loom

A blog engine that just works. One binary, no setup, no dependencies.

Posts tagged “mutex” (1)

Thread Safety — The CompositorMar 23 8.4K

The spinner thread and the main thread both want stdout. They can't have it. The Compositor is the bouncer: one lock, one writer, zero corruption. Plus the self-pipe trick, mutable regions, and why the mutex must cover the write() syscall.

--c++23 --compositor --mutex --thread-safety --signal-handling --self-pipe --claude-code