-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework of PfRingDevice capture thread implementation. #1668
base: dev
Are you sure you want to change the base?
Conversation
- Completely rewrote the capture thread function to be a free function. - Added StopToken and StopTokenSource to encapsulate stop requests. - Refactored startCaptureSingleThread to use startCaptureMultiThread.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1668 +/- ##
==========================================
- Coverage 83.16% 83.12% -0.05%
==========================================
Files 277 278 +1
Lines 48193 48212 +19
Branches 9966 9947 -19
==========================================
- Hits 40081 40077 -4
- Misses 7234 7243 +9
- Partials 878 892 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I don't actually have a system that can run PF_RING. So it would be nice if someone could test it live. |
Fixes #1664.
StopToken
andStopTokenSource
that mirror C++20'sstop_token
andstop_source
.Many variables are now kept on the thread's stack instead of relying on member fields in
PfRindDevice
.