mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-08 05:51:17 -07:00
Move template parameter in Thread to a more logical scope location.
This commit is contained in:
parent
20f8668c28
commit
8a46452a70
10 changed files with 20 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue