Move template parameter in Thread to a more logical scope location.

This commit is contained in:
Adam Ierymenko
2013-08-08 09:19:36 -04:00
parent 20f8668c28
commit 8a46452a70
10 changed files with 20 additions and 21 deletions

View File

@ -187,7 +187,7 @@ EthernetTap::EthernetTap(
TRACE("tap %s created",_dev);
_thread = Thread<EthernetTap>::start(this);
_thread = Thread::start(this);
}
#endif // __LINUX__
@ -271,14 +271,14 @@ EthernetTap::EthernetTap(
::pipe(_shutdownSignalPipe);
_thread = Thread<EthernetTap>::start(this);
_thread = Thread::start(this);
}
#endif // __APPLE__
EthernetTap::~EthernetTap()
{
::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
Thread<EthernetTap>::join(_thread);
Thread::join(_thread);
::close(_fd);
}