diff options
author | David Robillard <d@drobilla.net> | 2013-02-04 00:54:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-04 00:54:25 +0000 |
commit | 46c3a486eee4b2ef69d9cc4f9e2701082c64d7c8 (patch) | |
tree | ecf7a89fb1c28a619106dd78ccd257a1ff52c70a /src/socket/SocketReader.hpp | |
parent | 69f98d63f5bd22c82208fef5fbc2a61613541bd7 (diff) | |
download | ingen-46c3a486eee4b2ef69d9cc4f9e2701082c64d7c8.tar.gz ingen-46c3a486eee4b2ef69d9cc4f9e2701082c64d7c8.tar.bz2 ingen-46c3a486eee4b2ef69d9cc4f9e2701082c64d7c8.zip |
Replace Raul::thread with std::thread.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5047 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket/SocketReader.hpp')
-rw-r--r-- | src/socket/SocketReader.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/socket/SocketReader.hpp b/src/socket/SocketReader.hpp index ea2bcd8e..489b7e3f 100644 --- a/src/socket/SocketReader.hpp +++ b/src/socket/SocketReader.hpp @@ -17,7 +17,8 @@ #ifndef INGEN_SOCKET_SOCKET_READER_HPP #define INGEN_SOCKET_SOCKET_READER_HPP -#include "raul/Thread.hpp" +#include <thread> + #include "sord/sord.h" #include "Socket.hpp" @@ -30,7 +31,7 @@ class World; namespace Socket { /** Calls Interface methods based on Turtle messages received via socket. */ -class SocketReader : public Raul::Thread +class SocketReader { public: SocketReader(World& world, @@ -40,7 +41,7 @@ public: ~SocketReader(); private: - virtual void _run(); + void run(); static SerdStatus set_base_uri(SocketReader* iface, const SerdNode* uri_node); @@ -64,6 +65,8 @@ private: SordInserter* _inserter; SordNode* _msg_node; SPtr<Socket> _socket; + bool _exit_flag; + std::thread _thread; }; } // namespace Ingen |