summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2015-03-06 19:15:02 +0100
committerGravatar Emmanuel Gil Peyrot2015-03-06 19:23:52 +0100
commit0aa44e238db7a72f4fb8b347168ec76c3ce48ad5 (patch)
treedba02c60d0a663708265089394c634a655417f9d /src/common/logging/backend.h
parentMerge pull request #630 from archshift/swap (diff)
downloadyuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.gz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.xz
yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.zip
Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r--src/common/logging/backend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index 1c44c929e..3114f864c 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -10,6 +10,7 @@
10 10
11#include "common/concurrent_ring_buffer.h" 11#include "common/concurrent_ring_buffer.h"
12 12
13#include "common/logging/filter.h"
13#include "common/logging/log.h" 14#include "common/logging/log.h"
14 15
15namespace Log { 16namespace Log {
@@ -131,4 +132,6 @@ Entry CreateEntry(Class log_class, Level log_level,
131/// Initializes the default Logger. 132/// Initializes the default Logger.
132std::shared_ptr<Logger> InitGlobalLogger(); 133std::shared_ptr<Logger> InitGlobalLogger();
133 134
135void SetFilter(Filter* filter);
136
134} 137}