Hacker News new | ask | show | jobs
by krylon 2960 days ago
I stand corrected. Good to know, thank you!
1 comments

To be fair, I’ve never used KTM in my apps.

In cases when I need to write several values atomically (e.g. in a program with persistent window positions, after user moved a window I want to write all 4 coordinates of the rectangle), I just keep them in a single value, either string or binary. Even without KTM, registry API already guarantees value writes are atomic.