The implementation of remained of type for roughly 22 years, and then… multithreading happend...
Thomas Zimmermann on picotm, transactions, and low-level software development...
As usually, you can find the full source code for this blog post on GitHub. If you're interested in a more sophisticated C transaction manager, take a look at picotm.