Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into docker-release
Browse files Browse the repository at this point in the history
  • Loading branch information
glimberg committed Oct 2, 2024
2 parents e1c72e6 + d9d58c8 commit 0b5666b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions osdep/BSDEthernetTap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,12 @@ void BSDEthernetTap::threadMain()
// constructing itself.
Thread::sleep(500);

bool pinning = _pinning;

for (unsigned int i = 0; i < _concurrency; ++i) {
_rxThreads.push_back(std::thread([this, i, _pinning] {
_rxThreads.push_back(std::thread([this, i, pinning] {

if (_pinning) {
if (pinning) {
int pinCore = i % _concurrency;
fprintf(stderr, "Pinning thread %d to core %d\n", i, pinCore);
pthread_t self = pthread_self();
Expand Down

0 comments on commit 0b5666b

Please sign in to comment.