summaryrefslogtreecommitdiffstats
path: root/src/socket
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-14 05:45:15 +0000
committerDavid Robillard <d@drobilla.net>2012-05-14 05:45:15 +0000
commiteee943caa90c2c18777865ed835aa2ca9f92f947 (patch)
tree2d993bd7d18b0305852d34d34d513d08d29666dd /src/socket
parentbf7116520bc723980edb1120eaa66455a4c66ca5 (diff)
downloadingen-eee943caa90c2c18777865ed835aa2ca9f92f947.tar.gz
ingen-eee943caa90c2c18777865ed835aa2ca9f92f947.tar.bz2
ingen-eee943caa90c2c18777865ed835aa2ca9f92f947.zip
Clean up Thread interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4411 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/socket')
-rw-r--r--src/socket/SocketListener.cpp5
-rw-r--r--src/socket/SocketReader.cpp4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/socket/SocketListener.cpp b/src/socket/SocketListener.cpp
index cbd29d7e..a2dcaba0 100644
--- a/src/socket/SocketListener.cpp
+++ b/src/socket/SocketListener.cpp
@@ -38,12 +38,11 @@ namespace Ingen {
namespace Socket {
SocketListener::SocketListener(Ingen::Shared::World& world)
- : _world(world)
+ : Raul::Thread("SocketListener")
+ , _world(world)
, _unix_sock(Socket::UNIX)
, _net_sock(Socket::TCP)
{
- set_name("SocketListener");
-
// Create UNIX socket
_unix_path = world.conf().option("socket").get_string();
const std::string unix_uri = "unix://" + _unix_path;
diff --git a/src/socket/SocketReader.cpp b/src/socket/SocketReader.cpp
index 80a9bd22..1a3e5475 100644
--- a/src/socket/SocketReader.cpp
+++ b/src/socket/SocketReader.cpp
@@ -34,13 +34,13 @@ namespace Socket {
SocketReader::SocketReader(Ingen::Shared::World& world,
Interface& iface,
SharedPtr<Socket> sock)
- : _world(world)
+ : Raul::Thread("SocketReader")
+ , _world(world)
, _iface(iface)
, _inserter(NULL)
, _msg_node(NULL)
, _socket(sock)
{
- set_name("SocketReader");
start();
}