Rename cache_mode member to current_cache_mode

This commit is contained in:
0blu 2024-09-01 13:23:38 +02:00
parent 2616bd8f15
commit 0cc93bdd44
2 changed files with 5 additions and 5 deletions

View File

@ -495,7 +495,7 @@ namespace cpptrace {
namespace detail {
std::atomic_bool absorb_trace_exceptions(true); // NOSONAR
std::atomic_bool resolve_inlined_calls(true); // NOSONAR
std::atomic<enum cache_mode> cache_mode(cache_mode::prioritize_speed); // NOSONAR
std::atomic<cache_mode> current_cache_mode(cache_mode::prioritize_speed); // NOSONAR
}
void absorb_trace_exceptions(bool absorb) {
@ -508,7 +508,7 @@ namespace cpptrace {
namespace experimental {
void set_cache_mode(cache_mode mode) {
detail::cache_mode = mode;
detail::current_cache_mode = mode;
}
}
@ -521,8 +521,8 @@ namespace cpptrace {
return resolve_inlined_calls;
}
enum cache_mode get_cache_mode() {
return cache_mode;
cache_mode get_cache_mode() {
return current_cache_mode;
}
CPPTRACE_FORCE_NO_INLINE

View File

@ -40,7 +40,7 @@ namespace detail {
bool should_absorb_trace_exceptions();
bool should_resolve_inlined_calls();
enum cache_mode get_cache_mode();
cache_mode get_cache_mode();
}
}