From a7c4cbe53aad51b3e74fa9cb1af975cb8d356954 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 5 Aug 2013 16:06:16 -0400 Subject: CLI debugging, got rid of nasty old Thread class and replaced with newer cleaner portable idiom. --- node/EthernetTap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node/EthernetTap.cpp') diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp index c45d50c2..870baceb 100644 --- a/node/EthernetTap.cpp +++ b/node/EthernetTap.cpp @@ -187,7 +187,7 @@ EthernetTap::EthernetTap( TRACE("tap %s created",_dev); - start(); + _thread = Thread::start(this); } #endif // __LINUX__ @@ -271,14 +271,14 @@ EthernetTap::EthernetTap( ::pipe(_shutdownSignalPipe); - start(); + _thread = Thread::start(this); } #endif // __APPLE__ EthernetTap::~EthernetTap() { ::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit - join(); + Thread::join(_thread); ::close(_fd); } @@ -549,7 +549,7 @@ bool EthernetTap::updateMulticastGroups(std::set &groups) } #endif // __APPLE__ -void EthernetTap::main() +void EthernetTap::threadMain() throw() { fd_set readfds,nullfds; -- cgit v1.2.3