summaryrefslogtreecommitdiff
path: root/src/discord/websocket.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-09-28 20:44:33 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-09-28 20:44:33 -0400
commita79b2d418e1a67b3af034d81fa3df09afc92329e (patch)
treec0a0ed8ed5203b0cd72607a362ad223179f5e33a /src/discord/websocket.hpp
parent0571a05497ff628ceba8c7752dc3dd4104b1e0ea (diff)
downloadabaddon-portaudio-a79b2d418e1a67b3af034d81fa3df09afc92329e.tar.gz
abaddon-portaudio-a79b2d418e1a67b3af034d81fa3df09afc92329e.zip
synchronize ws close/open to creating thread
Diffstat (limited to 'src/discord/websocket.hpp')
-rw-r--r--src/discord/websocket.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/discord/websocket.hpp b/src/discord/websocket.hpp
index ca7dcc6..ba55254 100644
--- a/src/discord/websocket.hpp
+++ b/src/discord/websocket.hpp
@@ -3,6 +3,7 @@
#include <ixwebsocket/IXWebSocket.h>
#include <string>
#include <functional>
+#include <glibmm.h>
#include <nlohmann/json.hpp>
#include <sigc++/sigc++.h>
@@ -42,4 +43,8 @@ private:
type_signal_message m_signal_message;
bool m_print_messages = true;
+
+ Glib::Dispatcher m_open_dispatcher;
+ Glib::Dispatcher m_close_dispatcher;
+ std::atomic<uint16_t> m_close_code;
};