mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 06:08:15 +00:00
Switch to local.conf-based config of multithreading
This commit is contained in:
@ -240,6 +240,12 @@ ZT_ResultCode Node::processVirtualNetworkFrame(
|
||||
}
|
||||
}
|
||||
|
||||
void Node::initMultithreading(bool isEnabled, unsigned int concurrency, bool cpuPinningEnabled)
|
||||
{
|
||||
_multithreadingEnabled = isEnabled;
|
||||
RR->pm->setUpPostDecodeReceiveThreads(concurrency, cpuPinningEnabled);
|
||||
}
|
||||
|
||||
// Closure used to ping upstream and active/online peers
|
||||
class _PingPeersThatNeedPing
|
||||
{
|
||||
|
Reference in New Issue
Block a user