1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-03 22:26:30 +02:00

Enabled CPU pinning logic for FreeBSD as we have this logic in modern Boost

This commit is contained in:
Pavel Odintsov 2024-02-11 17:32:06 +00:00 committed by GitHub
parent 3932570572
commit 5321a50558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,9 +206,7 @@ void receiver(std::string interface_for_listening) {
logger.info("Start new netmap thread %d", i);
// Well, we have thread attributes from Boost 1.50
#if defined(BOOST_THREAD_PLATFORM_PTHREAD) && BOOST_VERSION / 100 % 1000 >= 50 && !defined(__APPLE__) && defined(__GLIBC__)
#if defined(BOOST_THREAD_PLATFORM_PTHREAD) && !defined(__APPLE__)
/* Bind to certain core */
boost::thread::attributes thread_attrs;