summaryrefslogtreecommitdiffstats
path: root/src/socket
diff options
context:
space:
mode:
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();
}