diff options
| author | 2015-05-12 02:19:44 -0300 | |
|---|---|---|
| committer | 2015-05-12 02:31:04 -0300 | |
| commit | b88c91dd3d03f1a452cdd48f0db4e010cb150753 (patch) | |
| tree | 17ddf674e020be69d03cc1c3c49c3e041377603b /src/citra/citra.cpp | |
| parent | Merge pull request #748 from Subv/tls_max (diff) | |
| download | yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.gz yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.tar.xz yuzu-b88c91dd3d03f1a452cdd48f0db4e010cb150753.zip | |
Common: Remove async logging
It provided a large increase in complexity of the logging system while
having a negligible performance impact: the usage patterns of the ring
buffer meant that each log contended with the logging thread, causing
it to effectively act as a synchronous extra buffering.
Also removed some broken code related to filtering of subclasses which
was broken since it was introduced. (Which means no one ever used that
feature anyway, since, 8 months later, no one ever complained.)
Diffstat (limited to 'src/citra/citra.cpp')
| -rw-r--r-- | src/citra/citra.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 1d7e7f270..ca93d5b91 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -20,14 +20,8 @@ | |||
| 20 | 20 | ||
| 21 | /// Application entry point | 21 | /// Application entry point |
| 22 | int main(int argc, char **argv) { | 22 | int main(int argc, char **argv) { |
| 23 | std::shared_ptr<Log::Logger> logger = Log::InitGlobalLogger(); | ||
| 24 | Log::Filter log_filter(Log::Level::Debug); | 23 | Log::Filter log_filter(Log::Level::Debug); |
| 25 | Log::SetFilter(&log_filter); | 24 | Log::SetFilter(&log_filter); |
| 26 | std::thread logging_thread(Log::TextLoggingLoop, logger); | ||
| 27 | SCOPE_EXIT({ | ||
| 28 | logger->Close(); | ||
| 29 | logging_thread.join(); | ||
| 30 | }); | ||
| 31 | 25 | ||
| 32 | if (argc < 2) { | 26 | if (argc < 2) { |
| 33 | LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); | 27 | LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); |