Switch to local.conf-based config of multithreading
This commit is contained in:
parent
8283a6d6d4
commit
b1a30ae4ff
6 changed files with 177 additions and 183 deletions
|
@ -283,6 +283,14 @@ public:
|
|||
return _lowBandwidthMode;
|
||||
}
|
||||
|
||||
inline bool getMultithreadingEnabled()
|
||||
{
|
||||
return _multithreadingEnabled;
|
||||
}
|
||||
|
||||
void initMultithreading(bool isEnabled, unsigned int concurrency, bool cpuPinningEnabled);
|
||||
|
||||
|
||||
public:
|
||||
RuntimeEnvironment _RR;
|
||||
RuntimeEnvironment *RR;
|
||||
|
@ -331,6 +339,7 @@ public:
|
|||
volatile int64_t _prngState[2];
|
||||
bool _online;
|
||||
bool _lowBandwidthMode;
|
||||
bool _multithreadingEnabled;
|
||||
};
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue