mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-27 06:20:11 +00:00
Omit CPU pinning code on OpenBSD
This commit is contained in:
parent
75a5b4438b
commit
969c0ee6e3
@ -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…
x
Reference in New Issue
Block a user