diff options
| author | 2015-05-12 02:19:44 -0300 | |
|---|---|---|
| committer | 2015-05-12 02:31:04 -0300 | |
| commit | b88c91dd3d03f1a452cdd48f0db4e010cb150753 (patch) | |
| tree | 17ddf674e020be69d03cc1c3c49c3e041377603b /src/common/logging/log.h | |
| 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/common/logging/log.h')
| -rw-r--r-- | src/common/logging/log.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/logging/log.h b/src/common/logging/log.h index 123641cb4..fd87ddbe6 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h | |||
| @@ -78,11 +78,7 @@ enum class Class : ClassType { | |||
| 78 | Count ///< Total number of logging classes | 78 | Count ///< Total number of logging classes |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | /** | 81 | /// Logs a message to the global logger. |
| 82 | * Logs a message to the global logger. This proxy exists to avoid exposing the details of the | ||
| 83 | * Logger class, including the ConcurrentRingBuffer template, to all files that desire to log | ||
| 84 | * messages, reducing unecessary recompilations. | ||
| 85 | */ | ||
| 86 | void LogMessage(Class log_class, Level log_level, | 82 | void LogMessage(Class log_class, Level log_level, |
| 87 | const char* filename, unsigned int line_nr, const char* function, | 83 | const char* filename, unsigned int line_nr, const char* function, |
| 88 | #ifdef _MSC_VER | 84 | #ifdef _MSC_VER |