mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Omit CPU pinning code on OpenBSD
This commit is contained in:
parent
75a5b4438b
commit
969c0ee6e3
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,7 @@ void BSDEthernetTap::threadMain()
|
||||||
// constructing itself.
|
// constructing itself.
|
||||||
Thread::sleep(500);
|
Thread::sleep(500);
|
||||||
|
|
||||||
|
#ifndef __OpenBSD__
|
||||||
bool pinning = _pinning;
|
bool pinning = _pinning;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < _concurrency; ++i) {
|
for (unsigned int i = 0; i < _concurrency; ++i) {
|
||||||
|
@ -451,6 +452,7 @@ void BSDEthernetTap::threadMain()
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // __OpenBSD__
|
||||||
|
|
||||||
uint8_t b[ZT_TAP_BUF_SIZE];
|
uint8_t b[ZT_TAP_BUF_SIZE];
|
||||||
MAC to, from;
|
MAC to, from;
|
||||||
|
|
Loading…
Add table
Reference in a new issue