mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-09 08:46:54 +02:00
Fix build error for BSD tap driver
This commit is contained in:
parent
4920b68d2c
commit
d34481d830
1 changed files with 5 additions and 3 deletions
|
@ -431,10 +431,12 @@ void BSDEthernetTap::threadMain()
|
|||
// constructing itself.
|
||||
Thread::sleep(500);
|
||||
|
||||
for (unsigned int i = 0; i < _concurrency; ++i) {
|
||||
_rxThreads.push_back(std::thread([this, i, _pinning] {
|
||||
bool pinning = _pinning;
|
||||
|
||||
if (_pinning) {
|
||||
for (unsigned int i = 0; i < _concurrency; ++i) {
|
||||
_rxThreads.push_back(std::thread([this, i, pinning] {
|
||||
|
||||
if (pinning) {
|
||||
int pinCore = i % _concurrency;
|
||||
fprintf(stderr, "Pinning thread %d to core %d\n", i, pinCore);
|
||||
pthread_t self = pthread_self();
|
||||
|
|
Loading…
Add table
Reference in a new issue