summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorGravatar Levi Behunin2021-11-01 18:36:27 -0600
committerGravatar Levi Behunin2021-11-01 18:36:27 -0600
commitd6b5f64484053772c486a0cd4d3be98f02a01391 (patch)
tree3162d5485a1f81ec8cc313e577def14a89e7c040 /src/common/logging/backend.h
parentMerge pull request #7264 from zhaobot/tx-update-20211101021628 (diff)
downloadyuzu-d6b5f64484053772c486a0cd4d3be98f02a01391.tar.gz
yuzu-d6b5f64484053772c486a0cd4d3be98f02a01391.tar.xz
yuzu-d6b5f64484053772c486a0cd4d3be98f02a01391.zip
Refactor Logging Impl
Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging.
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r--src/common/logging/backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index cb7839ee9..bf785f402 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -14,6 +14,8 @@ class Filter;
14/// Initializes the logging system. This should be the first thing called in main. 14/// Initializes the logging system. This should be the first thing called in main.
15void Initialize(); 15void Initialize();
16 16
17void Start();
18
17void DisableLoggingInTests(); 19void DisableLoggingInTests();
18 20
19/** 21/**