Projects / Thread Safe Template Library

Thread Safe Template Library

Thread Safe Template Library (TSTL) is a C++ library that provides thread-safe containers with high grade of locking. It includes classes for multimaps based on a B-tree and a hash table. It also includes classes for a queue, a priority queue, a pipe, an alloccache, a timercache, a limitcache without global locking, and a fast shared mutual exclusion locker (also known as "rwlock" or "wmrg"). It's useful for writing multi-threaded applications, network services, and operating system components with high requirements for interactivity level.

Operating Systems

Recent releases

  •  14 May 2010 08:08

    Release Notes: The library was ported to gcc AMD64 (EM64T). The previous port for gcc x32 was optimized. For MSVC x32, the inline function interlocked_exchange() was optimized.

    •  28 Apr 2010 14:43

      Release Notes: The shared locker was reimplemented (placed in rwlock template). The shared policy controller was introduced in rwlock template. A new shared lock - lightlock :: rwlock template was added. Compile bugs in the timer_cache template were fixed.

      •  22 Jan 2010 15:44

        Release Notes: Bugfixes in container support after allocators were introduced. Copy constructors were added to set_at methods in the nbmap, pbmap, timercache, and limitcache templates. Copy constructors were added to cqueue, iqueue, and pipe template. The pipe template was fully refactored. An alloc_cache_array template was added.

        •  09 Dec 2009 15:40

          Release Notes: A bug was fixed in allocating the cache template. A building bug was fixed in the multi-map template.

          •  07 Dec 2009 18:08

            Release Notes: Container support was introduced. memcpy () and similar were removed. The container interface was refactored. Extra parameter links were removed. Building bugs were fixed in the classic queue template. The documentation was updated.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.