Merge remote-tracking branch 'origin/dev' into docker-release

This commit is contained in:
Grant Limberg 2024-10-02 13:07:23 -07:00
commit 0b5666bde2
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -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();