feat: Show FrankerFaceZ channel badges (#5119)

This commit is contained in:
pajlada
2024-02-25 12:18:57 +01:00
committed by GitHub
parent 2815c7b67d
commit 101dc82ea0
10 changed files with 127 additions and 8 deletions
+3 -3
View File
@@ -10,11 +10,11 @@ namespace chatterino {
// Debug-class which asserts if guard of the same object has been called from different threads
struct ThreadGuard {
#ifndef NDEBUG
std::mutex mutex;
std::optional<std::thread::id> threadID;
mutable std::mutex mutex;
mutable std::optional<std::thread::id> threadID;
#endif
inline void guard()
inline void guard() const
{
#ifndef NDEBUG
std::unique_lock lock(this->mutex);