From da4c1fcad194f4f3f399f6a4a731df34567c95ef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Aug 2012 00:59:35 +0000 Subject: Remove Raul::Slave class. Merge Thread::stop() and Thread::join(). Clean thread shut down without the use of pthread_cancel(). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4708 a436a847-0d15-0410-975c-d299462d15a1 --- src/socket/Socket.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/socket/Socket.hpp') diff --git a/src/socket/Socket.hpp b/src/socket/Socket.hpp index 49d03d48..1406d87e 100644 --- a/src/socket/Socket.hpp +++ b/src/socket/Socket.hpp @@ -81,6 +81,12 @@ public: /** Close the socket. */ void close(); + /** Shut down the socket. + * This terminates any connections associated with the sockets, and will + * (unlike close()) cause a poll on the socket to return. + */ + void shutdown(); + private: bool set_addr(const Raul::URI& uri); -- cgit v1.2.1