libtscb is a library that contains various utitilies for thread-safe programming. In particular, it provides
What sets this library apart from others is the performance compared to other implementations, see the performance section of the documentation for a quantitative comparison. The performance is mainly achieved through extensive use of atomic operations instead of locking, see the synchronization section of the manual for a rough description of the inner workings.
Documentation: View online or download.
Source code: libtscb-0.9.1.tar.gz.
Git tree: http://git.chaoticmind.net/cgi-bin/cgit.cgi/libtscb/
If you find this library useful, would find it more useful if I changed it slightly, or just want to flame me for its deficiencies, feel free to contact me