-
Notifications
You must be signed in to change notification settings - Fork 866
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
fix epoll event loss problem #1843
Conversation
I viewed my code, I think continuous-integration/travis-ci/pr should be retry to solve this error, what should i do ? |
I retied , all successed |
Just one more thing before we start seeing to it: Did you read the |
thanks for your attention, yep, I have read that document, I think I use right mutex to solve that problem |
when will this pull request be merged ? |
The review is scheduled, but we need to include it in the plan. |
Ok, there are two small problems here.
which is also locking Instead you should rather use the Actually this thing in TSBPD mode is guarded correctly - the lock is applied for a wider range and embraces setting SRT_EPOLL_IN event. |
|
Ok, this is how you could do it:
|
thanks for your solution, I have modified my pull request. plz review it again |
more detailed informations:
(1) user thread: call receive/receivemessage
(2) user thread: read data
(3) user thread: no data in rcvbuffer, set SRT_EPOLL_IN event to false
(4) receive thread: receive data and set SRT_EPOLL_IN to true
(5) user thread: set SRT_EPOLL_IN to false