Thread Safe Template Library (TSTL) is a C++ library that provides thread-safe storage data structures without global locking. It includes classes for maps based on a non-binary extensible hashing tree for very fast access, a pipe, a queue, a timercache, a limitcache, and a fast writer multiple reader guard (or 'rwlock') without global locking (which uses the atomic C++0x API based on the interlocked instruction set of the CPU). It's useful for writing multi-threaded applications and operating system components.
| Tags | Operating System Kernels Linux BSD Software Development Libraries |
|---|---|
| Operating Systems | POSIX Linux BSD FreeBSD Windows Windows Windows Windows Unix |
| Implementation | C++ |
Recent releases


Changes: A limitcache::set_at () deadlock was fixed.


Changes: A bug concerning building with MS VS 2005 was fixed.


Changes: MS interlocked inline functions were replaced with an atomic API (based on the C++0x draft document). Names in the library were lower-cased. The queue template was replaced with a new variant with only one atomic operation without global locking. The 'wmrg' template was renamed to 'rwlock'. All template definitions were moved to the 'tstl' namespace.


Changes: Bugs in the "relocker" template and GNU assempler inline macros were fixed. The "unilocker" template was added. All templates use "unilocker" instead of RESOURCE_LOCK() macros now.


Changes: A new class 'relocker' was added. It's an implementation of a re-enterable locker with two locking politics: waitable locker and spin locker.