mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 22:58:22 +00:00
Move template parameter in Thread to a more logical scope location.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user