boost::logging::locker::tss_resource_once_init< type, mutex > Struct Template Reference
List of all members.
Detailed Description
template<class type, class mutex = boost::logging::threading::mutex>
struct boost::logging::locker::tss_resource_once_init< type, mutex >
Locks a resource, and uses TSS.
The resource can be initialized once, at any time, no matter how many threads. Once the resource is initialized (basically, someone used resource::write), that is the final value
All other threads will use and cached the initialized value.
- 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:
- detail/ts/ts_resource.hpp
Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback