aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/sync_manager.cpp
diff options
context:
space:
mode:
authoryzct12345 <87620833+yzct12345@users.noreply.github.com>2021-08-13 18:39:45 +0000
committerGitHub <noreply@github.com>2021-08-13 18:39:45 +0000
commitaee8cc20ead957957217c0890793664a62f53084 (patch)
tree151923c90c42bdcede2581ddf6b56768bfcafc01 /src/video_core/command_classes/sync_manager.cpp
parent53649811335a53cb2f4e4c577aaa3c93f7e9b074 (diff)
logging: Simplify and make thread-safe
This simplifies the logging system. This also fixes some lost messages on startup. The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation. With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things.
Diffstat (limited to 'src/video_core/command_classes/sync_manager.cpp')
0 files changed, 0 insertions, 0 deletions