boost::logging::locker::tss_resource_with_cache< type, default_cache_secs, mutex > Struct Template Reference

List of all members.


Detailed Description

template<class type, int default_cache_secs = 5, class mutex = boost::logging::threading::mutex>
struct boost::logging::locker::tss_resource_with_cache< type, default_cache_secs, mutex >

Locks a resource, and uses TSS (Thread-specific storage). This holds the value, and each thread caches it. Once at a given period (like, every 5 seconds), when used, the latest object is copied.

See also:
locker

default_cache_millis how many secs to cache the data. By default, 5


The documentation for this struct was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback