summaryrefslogtreecommitdiffhomepage
path: root/proto-udp/ftnoir_protocol_ftn.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-16 05:58:48 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:49:13 +0100
commit03d28dde1635e36508cff1f9eabc265cdb5febb9 (patch)
treeee62d5851315c7b4c2c3c05f8a72e29a6dd4a1e8 /proto-udp/ftnoir_protocol_ftn.h
parentf8faca0abecafd6e65d07bd0fdd618070114cdfa (diff)
compat/mutex: remove
Always use the adaptive QMutex.
Diffstat (limited to 'proto-udp/ftnoir_protocol_ftn.h')
-rw-r--r--proto-udp/ftnoir_protocol_ftn.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/proto-udp/ftnoir_protocol_ftn.h b/proto-udp/ftnoir_protocol_ftn.h
index a7c90f5b..53387a6c 100644
--- a/proto-udp/ftnoir_protocol_ftn.h
+++ b/proto-udp/ftnoir_protocol_ftn.h
@@ -12,7 +12,6 @@
#include "ui_ftnoir_ftncontrols.h"
#include "api/plugin-api.hpp"
-#include "compat/spinlock.hpp"
#include "options/options.hpp"
using namespace options;
#include <QUdpSocket>
@@ -42,7 +41,7 @@ private:
QUdpSocket outSocket;
settings s;
- mutable std::atomic_flag spl = ATOMIC_FLAG_INIT;
+ mutable QMutex lock;
QHostAddress dest_ip { 127u << 24 | 1u };
unsigned short dest_port = 65535;