Tune thread count based on hardware concurrency.

This commit is contained in:
Adam Ierymenko 2020-11-18 22:42:00 -05:00
parent f934a09baa
commit 7b14aeb53e
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
2 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ private:
int _fd;
int _shutdownSignalPipe[2];
std::atomic_bool _enabled;
std::thread _tapReaderThread[2];
std::vector<std::thread> _tapReaderThreads;
std::thread _tapProcessorThread;
std::mutex _buffers_l;
std::vector<void *> _buffers;