summaryrefslogtreecommitdiff
path: root/discord/discord.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-10-05 21:37:07 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-10-05 21:37:07 -0400
commit0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c (patch)
treec340566dbccc77d2d3cb21b1290e01e5c1c0d9c4 /discord/discord.hpp
parentcfcb0d4e662b960dcdd331a7c61dc2b9c614f930 (diff)
downloadabaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.tar.gz
abaddon-portaudio-0cdaea97dd035bcbf9d46b8a261b3eeaf4dea69c.zip
slap a bunch of shit everywhere until the crashing stops
Diffstat (limited to 'discord/discord.hpp')
-rw-r--r--discord/discord.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/discord/discord.hpp b/discord/discord.hpp
index 025d969..47486fb 100644
--- a/discord/discord.hpp
+++ b/discord/discord.hpp
@@ -11,6 +11,8 @@
#include <unordered_set>
#include <mutex>
#include <zlib.h>
+#include <glibmm.h>
+#include <queue>
// bruh
#ifdef GetMessage
@@ -147,6 +149,11 @@ private:
HeartbeatWaiter m_heartbeat_waiter;
std::atomic<bool> m_heartbeat_acked = true;
+ mutable std::mutex m_msg_mutex;
+ Glib::Dispatcher m_msg_dispatch;
+ std::queue<std::string> m_msg_queue;
+ void MessageDispatch();
+
// signals
public:
typedef sigc::signal<void> type_signal_gateway_ready;