Moar threadz

This commit is contained in:
Adam Ierymenko 2020-11-16 21:49:51 -05:00
parent 2da162bed7
commit 101a3a7d74
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
2 changed files with 26 additions and 20 deletions

View file

@ -71,7 +71,7 @@ private:
int _shutdownSignalPipe[2];
std::atomic_bool _enabled;
std::thread _tapReaderThread;
std::thread _tapProcessorThread;
std::thread _tapProcessorThread[2];
std::mutex _buffers_l;
std::vector<void *> _buffers;
BlockingQueue< std::pair<void *,int> > _tapq;