boost::logging::filter::use_tss_with_cache< default_cache_secs > Struct Template Reference

Uses TSS (Thread Specific Storage) to find out if a filter is enabled or not. More...

Collaboration diagram for boost::logging::filter::use_tss_with_cache< default_cache_secs >:
[legend]

List of all members.


Detailed Description

template<int default_cache_secs = 5>
struct boost::logging::filter::use_tss_with_cache< default_cache_secs >

Uses TSS (Thread Specific Storage) to find out if a filter is enabled or not.

It caches the current "is_enabled" on each thread. Then, at a given period, it retrieves the real "is_enabled".

Remarks:
Another implementation can be done, which could be faster - where you retrieve the "is_enabled" each X calls on a given thread (like, every 20 calls on a given thread)
The documentation for this struct was generated from the following file:

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